Skip to content

Commit 056989e

Browse files
authored
Fix input parsing in cito filter (#240)
Fix input parsing when the second part includes a colon. See manubot/rootstock#420 (comment)
1 parent aa3fc36 commit 056989e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cito/cito.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ end
8888
--- `default_cito_property` will be returned, together with the
8989
--- unchanged input ID.
9090
local function split_cito_from_id (citation_id)
91-
local pattern = '^(.+):(.+)$'
91+
local pattern = '^([^:]+):(.+)$'
9292
local prop_alias, split_citation_id = citation_id:match(pattern)
9393

9494
if properties_by_alias[prop_alias] then

0 commit comments

Comments
 (0)