Fix quick format locator regexp to not match numbers without space.
Closes #2915
This commit is contained in:
parent
7e4e66b54d
commit
350a5d2cbb
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ 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 locatorRe = /(?:,? *(p{0,2})\.?|(\:)) *([0-9\-–]+)$/i;
|
||||
const locatorRe = / (?:,? *(p{0,2})\.?|(\:)) *([0-9\-–]+)$/i;
|
||||
const creatorSplitRe = /(?:,| *(?:and|\&)) +/;
|
||||
const charRe = /[\w\u007F-\uFFFF]/;
|
||||
const numRe = /^[0-9\-–]+$/;
|
||||
|
|
Loading…
Reference in a new issue