From 5a8d669eccd83b3f68f421e3031c3f38238e88f7 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 13 Feb 2012 16:37:57 -0500 Subject: [PATCH] Be more lenient about hyphens and em dashes --- chrome/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 index d25bd2c22..1b4308781 100644 --- 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,