www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 5a8d669eccd83b3f68f421e3031c3f38238e88f7
parent 83c391628d4fb23e0407d46a9b9f320ff04bd52a
Author: Simon Kornblith <simon@simonster.com>
Date:   Mon, 13 Feb 2012 16:37:57 -0500

Be more lenient about hyphens and em dashes

Diffstat:
Mchrome/content/zotero/integration/quickFormat.js | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js @@ -27,10 +27,10 @@ var Zotero_QuickFormat = new function () { const pixelRe = /^([0-9]+)px$/ const specifiedLocatorRe = /^(?:,? *(p{0,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\-]+$/; + const numRe = /^[0-9\-–]+$/; var initialized, io, qfs, qfi, qfiWindow, qfiDocument, qfe, qfb, qfbHeight, qfGuidance, keepSorted, showEditor, referencePanel, referenceBox, referenceHeight = 0,