mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
make spage and epage work with en dashes
This commit is contained in:
parent
ca29a0d6eb
commit
7d0e31bc95
1 changed files with 2 additions and 2 deletions
|
|
@ -210,8 +210,8 @@ Zotero.OpenURL = new function() {
|
|||
}
|
||||
if(item.pages) {
|
||||
_mapTag(item.pages, "pages");
|
||||
var pages = item.pages.split("-");
|
||||
if(pages.length >= 1) {
|
||||
var pages = item.pages.split(/[-–]/);
|
||||
if(pages.length > 1) {
|
||||
_mapTag(pages[0], "spage");
|
||||
if(pages.length >= 2) _mapTag(pages[1], "epage");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue