tweak date regexp to handle WTN8601 properly
This commit is contained in:
parent
bc3b405e82
commit
d022b966fe
1 changed files with 1 additions and 1 deletions
|
@ -1844,7 +1844,7 @@ Zotero.Date = new function(){
|
|||
*
|
||||
* Note: the returned object is *not* a JS Date object
|
||||
*/
|
||||
var _slashRe = /^(.*?)\b([0-9]{1,4})(?:([\-\/\.\u5e74])([0-9]{1,2}))?(?:([\-\/\.\u6708])([0-9]{1,4}))?\b(.*?)$/
|
||||
var _slashRe = /^(.*?)\b([0-9]{1,4})(?:([\-\/\.\u5e74])([0-9]{1,2}))?(?:([\-\/\.\u6708])([0-9]{1,4}))?((?:\b|[^0-9]).*?)$/
|
||||
var _yearRe = /^(.*?)\b((?:circa |around |about |c\.? ?)?[0-9]{1,4}(?: ?B\.? ?C\.?(?: ?E\.?)?| ?C\.? ?E\.?| ?A\.? ?D\.?)|[0-9]{3,4})\b(.*?)$/i;
|
||||
var _monthRe = null;
|
||||
var _dayRe = null;
|
||||
|
|
Loading…
Add table
Reference in a new issue