mirror of
https://github.com/zotero/zotero.git
synced 2026-10-03 02:21:49 +00:00
Don't attempt to fetch daySuffixes in Connector/Bookmarklet
This commit is contained in:
parent
bd5fca3c23
commit
1beab1d3a7
1 changed files with 1 additions and 1 deletions
|
|
@ -452,7 +452,7 @@ Zotero.Date = new function(){
|
|||
if(!date.day) {
|
||||
// compile day regular expression
|
||||
if(!_dayRe) {
|
||||
var daySuffixes = Zotero.getString ? Zotero.getString("date.daySuffixes").replace(/, ?/g, "|") : "";
|
||||
var daySuffixes = Zotero.isClient ? Zotero.getString("date.daySuffixes").replace(/, ?/g, "|") : "";
|
||||
_dayRe = new RegExp("\\b([0-9]{1,2})(?:"+daySuffixes+")?\\b(.*)", "i");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue