зеркало из https://github.com/mozilla/gecko-dev.git
Adding a missing escape to the regexp pattern to make it ECMA-correct.
This commit is contained in:
Родитель
c0c4774d13
Коммит
3448608123
|
@ -100,7 +100,7 @@ function test() {
|
|||
* resulting string is some permutation of the strings in the array.
|
||||
*/
|
||||
function checkObjectToString(s, a) {
|
||||
var m = /^{(.*)\}$/(s);
|
||||
var m = /^\{(.*)\}$/(s);
|
||||
if (!m)
|
||||
return false; // should begin and end with curly brackets
|
||||
var a2 = m[1].split(", ");
|
||||
|
|
Загрузка…
Ссылка в новой задаче