зеркало из https://github.com/mozilla/pjs.git
# 15904
r vidur d fixes a problem where first character of the comment was being destroyed.
This commit is contained in:
Родитель
cb86e2278a
Коммит
e9ff1627d1
|
@ -451,9 +451,9 @@ StripCommentDelimiters(nsString& aCommentString)
|
|||
static char kMinus = '-';
|
||||
|
||||
offset = aCommentString.Find(kCommentStart);
|
||||
offset += strlen(kCommentStart);
|
||||
if (-1 != offset) {
|
||||
// Take up to 2 '-' characters
|
||||
offset += strlen(kCommentStart);
|
||||
if (kMinus == aCommentString.CharAt(offset)) {
|
||||
offset++;
|
||||
if (kMinus == aCommentString.CharAt(offset)) {
|
||||
|
|
|
@ -451,9 +451,9 @@ StripCommentDelimiters(nsString& aCommentString)
|
|||
static char kMinus = '-';
|
||||
|
||||
offset = aCommentString.Find(kCommentStart);
|
||||
offset += strlen(kCommentStart);
|
||||
if (-1 != offset) {
|
||||
// Take up to 2 '-' characters
|
||||
offset += strlen(kCommentStart);
|
||||
if (kMinus == aCommentString.CharAt(offset)) {
|
||||
offset++;
|
||||
if (kMinus == aCommentString.CharAt(offset)) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче