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) {
|
if(!date.day) {
|
||||||
// compile day regular expression
|
// compile day regular expression
|
||||||
if(!_dayRe) {
|
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");
|
_dayRe = new RegExp("\\b([0-9]{1,2})(?:"+daySuffixes+")?\\b(.*)", "i");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue