Core: fix time parser detection. See #1107

This commit is contained in:
Rob Garrison 2015-12-18 17:45:55 -06:00
parent 0648c8025c
commit e76e540982

View File

@ -2624,7 +2624,7 @@
}); });
// match 24 hour time & 12 hours time + am/pm - see http://regexr.com/3c3tk // match 24 hour time & 12 hours time + am/pm - see http://regexr.com/3c3tk
ts.regex.timeTest = /^([1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)$/i; ts.regex.timeTest = /^([1-9]|1[0-2]):([0-5]\d)(\s[AP]M)$|^((?:[01]\d|[2][0-4]):[0-5]\d)$/i;
ts.regex.timeMatch = /([1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)/i; ts.regex.timeMatch = /([1-9]|1[0-2]):([0-5]\d)(\s[AP]M)|((?:[01]\d|[2][0-4]):[0-5]\d)/i;
ts.addParser({ ts.addParser({
id : 'time', id : 'time',