You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is sometimes necessary to cite pages, sections, paragraphs, etc. using a locator like 2.1, 4(b), 3:8 (common shorthand for 'page 3, line 8' when citing transcripts), or '3¶8' (used when citing numbered paragraphs if not all of the document is numbered). When citing ranges of those locators, util_page.js fails to appreciate that they are ranges because they do not match its regexes. Compounding the problem, util_page.js also replaces en dashes with hyphens, so a manual workaround is impossible.
The regex in question is here (similar regexes are used at 35 and 36):
It is sometimes necessary to cite pages, sections, paragraphs, etc. using a locator like
2.1
,4(b)
,3:8
(common shorthand for 'page 3, line 8' when citing transcripts), or '3¶8' (used when citing numbered paragraphs if not all of the document is numbered). When citing ranges of those locators, util_page.js fails to appreciate that they are ranges because they do not match its regexes. Compounding the problem, util_page.js also replaces en dashes with hyphens, so a manual workaround is impossible.The regex in question is here (similar regexes are used at 35 and 36):
citeproc-js/src/util_page.js
Line 10 in 98a4368
The following regex should (adapted as appropriate for lines 35 and 36) work without causing problems:
([0-9]*[a-zA-Z]+0*)?([0-9\:\.\§\¶\*]+\(*[a-z]*\)*)\s*(?:\u2013|-)\s*([0-9]*[a-zA-Z]+0*)?([0-9\:\.\§\¶\*]+\(*[a-z]*\)*)
The text was updated successfully, but these errors were encountered: