mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Fixed test cases for non-global regexp. case - the result array should be
exactly the same as that returned by simply 'exec'ing the regexp against the input string.
This commit is contained in:
parent
473da06e9d
commit
ed8e8dbacf
@ -63,7 +63,7 @@
|
||||
"re = /([\d]{5})([-\ ]?[\d]{4})?$/; re.lastIndex =0",
|
||||
s,
|
||||
s.lastIndexOf("0"),
|
||||
["02134", ]);
|
||||
["02134", "02134"]);
|
||||
|
||||
|
||||
re.lastIndex = s.length;
|
||||
@ -82,7 +82,7 @@
|
||||
s.lastIndexOf("0"),
|
||||
s,
|
||||
s.lastIndexOf("0"),
|
||||
["02134"]);
|
||||
["02134", "02134"]);
|
||||
|
||||
re.lastIndex = s.lastIndexOf("0") + 1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user