зеркало из https://github.com/mozilla/pjs.git
Remove tabs introduced by my checkin for bug 287630. rs+a=brendan
This commit is contained in:
Родитель
1cb94f99e3
Коммит
5447cc4dc8
|
@ -1803,14 +1803,14 @@ find_split(JSContext *cx, JSString *str, JSRegExp *re, jsint *ip,
|
|||
i++;
|
||||
goto again;
|
||||
}
|
||||
if ((size_t)i == length) {
|
||||
if ((size_t)i == length) {
|
||||
/*
|
||||
* If there was a trivial zero-length match at the end of the
|
||||
* split, then we shouldn't output the matched string at the end
|
||||
* of the split array. See ECMA-262 Ed. 3, 15.5.4.14, Step 15.
|
||||
*/
|
||||
sep->chars = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
JS_ASSERT((size_t)i >= sep->length);
|
||||
return i - sep->length;
|
||||
|
|
Загрузка…
Ссылка в новой задаче