Files
obitools4/autodoc/examples/obiscript/annotate.lua
T
Eric Coissac 8c7017a99d ⬆️ version bump to v4.5
- Update obioptions.Version from "Release 4.4.29" to "/v/ Release v5"
- Update version.txt from 4.29 → .30
(automated by Makefile)
2026-04-13 13:34:53 +02:00

10 lines
279 B
Lua

-- Adds a 'sample' attribute by extracting the prefix before the first underscore
function worker(sequence)
local id = sequence:id()
local sample = string.match(id, "^(.-)_")
if sample then
sequence:attribute("sample", sample)
end
return sequence
end