aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-05-02 11:32:21 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-05-02 11:32:21 -0700
commit9fd0afa69c6c088fb80c2e2611cc45301fdc99ef (patch)
treec1e94e9a05edc6ee2187dee2732d23a877ac7dac /src
parentf25f2fa17a59182b34e5f68f725ef14b7c7f38a6 (diff)
use a case-insensitive regex in strptime; fixes #2324
Diffstat (limited to 'src')
-rw-r--r--src/library.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library.js b/src/library.js
index c8c5a0ff..751cc6d0 100644
--- a/src/library.js
+++ b/src/library.js
@@ -5782,7 +5782,7 @@ LibraryManager.library = {
pattern = pattern.replace(new RegExp('\\%'+pattern[i+1], 'g'), '');
}
- var matches = new RegExp('^'+pattern).exec(Pointer_stringify(buf))
+ var matches = new RegExp('^'+pattern, "i").exec(Pointer_stringify(buf))
// Module['print'](Pointer_stringify(buf)+ ' is matched by '+((new RegExp('^'+pattern)).source)+' into: '+JSON.stringify(matches));
function initDate() {