Adding a missing escape to the regexp pattern to make it ECMA-correct.

This commit is contained in:
pschwartau%netscape.com 2003-01-28 01:14:15 +00:00
Родитель c0c4774d13
Коммит 3448608123
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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(", ");