summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug606882-2.js
blob: b7542170f5569319479aa2ad228e622c6f4c80c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// don't crash
var book = 'Ps';
var pattern =   "(?:"
+                   "(?:"
+                       "(?:"
+                           "(?:-|)"
+                           "\\s?"
+                       ")"
+                       "|"
+                   ")"
+                   " ?"
+                   "\\d+"
+                   "\\w?"
+               ")*";
var re = new RegExp(pattern);
'8:5-8'.match(re);