Skip to content

Commit

Permalink
Fix input parsing in cito filter
Browse files Browse the repository at this point in the history
Fix input parsing when the second part includes a colon.

See manubot/rootstock#420 (comment)
  • Loading branch information
larsgw authored Jul 1, 2022
1 parent aa3fc36 commit fc44b75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cito/cito.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ end
--- `default_cito_property` will be returned, together with the
--- unchanged input ID.
local function split_cito_from_id (citation_id)
local pattern = '^(.+):(.+)$'
local pattern = '^([^:]+):(.+)$'
local prop_alias, split_citation_id = citation_id:match(pattern)

if properties_by_alias[prop_alias] then
Expand Down

0 comments on commit fc44b75

Please sign in to comment.