Citation dialog: match year-ranges (e.g. 1992-2002) for search
Instead of as page locators
This commit is contained in:
parent
b31f66ddbd
commit
5536f8d2bd
1 changed files with 2 additions and 2 deletions
|
@ -27,8 +27,8 @@ Services.scriptloader.loadSubScript("chrome://zotero/content/customElements.js",
|
|||
|
||||
var Zotero_QuickFormat = new function () {
|
||||
const pixelRe = /^([0-9]+)px$/
|
||||
const specifiedLocatorRe = /^(?:,? *(p{1,2})(?:\. *| *)|:)([0-9\-]+) *$/;
|
||||
const yearRe = /,? *([0-9]+) *(B[. ]*C[. ]*(?:E[. ]*)?|A[. ]*D[. ]*|C[. ]*E[. ]*)?$/i;
|
||||
const specifiedLocatorRe = /^(?:,? *(p{1,2})(?:\. *| *)|:)([0-9\-–]+) *$/;
|
||||
const yearRe = /,? *([0-9]+(?: *[-–] *[0-9]+)?) *(B[. ]*C[. ]*(?:E[. ]*)?|A[. ]*D[. ]*|C[. ]*E[. ]*)?$/i;
|
||||
const locatorRe = / (?:,? *(p{0,2})\.?|(\:)) *([0-9\-–]+)$/i;
|
||||
const creatorSplitRe = /(?:,| *(?:and|\&)) +/;
|
||||
const charRe = /[\w\u007F-\uFFFF]/;
|
||||
|
|
Loading…
Reference in a new issue