Parse spaces and em dashes in page ranges
This commit is contained in:
parent
c60cb6f76b
commit
282655e41a
|
@ -524,7 +524,7 @@ Zotero.Utilities.prototype.md5 = function(strOrFile, base64) {
|
|||
* @return {Integer[]} Start and end pages
|
||||
*/
|
||||
Zotero.Utilities.prototype.getPageRange = function(pages) {
|
||||
const pageRangeRegexp = /^\s*([0-9]+)-([0-9]+)\s*$/
|
||||
const pageRangeRegexp = /^\s*([0-9]+) ?[-\u2013] ?([0-9]+)\s*$/
|
||||
|
||||
var pageNumbers;
|
||||
var m = pageRangeRegexp.exec(pages);
|
||||
|
|
Loading…
Reference in New Issue
Block a user