Skip to content

Commit c59d93a

Browse files
committed
Remove unsupported unicode flag from regex
Closes #710
1 parent 0bbf6a3 commit c59d93a

File tree

4 files changed

+6
-20
lines changed

4 files changed

+6
-20
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jt.timepicker",
3-
"version": "1.13.2",
3+
"version": "1.13.3",
44
"description": "A jQuery timepicker plugin inspired by Google Calendar.",
55
"homepage": "http://jonthornton.github.com/jquery-timepicker",
66
"main": ["./jquery.timepicker.js", "./jquery.timepicker.css"],

jquery.timepicker.js

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* jquery-timepicker v1.13.2 - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.
2+
* jquery-timepicker v1.13.3 - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation.
33
* Copyright (c) 2015 Jon Thornton - http://jonthornton.github.com/jquery-timepicker/
44
* License: MIT
55
*/
@@ -1245,21 +1245,7 @@
12451245
timeString += "m";
12461246
}
12471247

1248-
var ampmRegex =
1249-
"(" +
1250-
_lang.am.replace(".", "") +
1251-
"|" +
1252-
_lang.pm.replace(".", "") +
1253-
"|" +
1254-
_lang.AM.replace(".", "") +
1255-
"|" +
1256-
_lang.PM.replace(".", "") +
1257-
")?";
1258-
1259-
// try to parse time input
1260-
var pattern = new RegExp("^(([^0-9]*))?([0-9]?[0-9])(\\W?([0-5][0-9]))?(\\W+([0-5][0-9]))?(([^0-9]*))$", "u");
1261-
1262-
1248+
var pattern = /^(([^0-9]*))?([0-9]?[0-9])(\\W?([0-5][0-9]))?(\\W+([0-5][0-9]))?(([^0-9]*))$/;
12631249
var time = timeString.match(pattern);
12641250
if (!time) {
12651251
return null;

jquery.timepicker.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "timepicker",
3-
"version": "1.13.2",
3+
"version": "1.13.3",
44
"title": "jquery-timepicker",
55
"author": {
66
"name": "Jon Thornton",

0 commit comments

Comments
 (0)