зеркало из https://github.com/mozilla/pjs.git
replace ' with apostrophe (bug 308998)
This commit is contained in:
Родитель
f999e59537
Коммит
6e1d572d67
|
@ -138,7 +138,7 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
[self getCharacters: buffer]; // does not null terminate
|
[self getCharacters:buffer]; // does not null terminate
|
||||||
ioString.Assign(buffer, len);
|
ioString.Assign(buffer, len);
|
||||||
|
|
||||||
if (buffer != stackBuffer)
|
if (buffer != stackBuffer)
|
||||||
|
@ -232,6 +232,7 @@
|
||||||
[dirtyStringMutant replaceOccurrencesOfString:@"<"withString:@"<" options:NSLiteralSearch range:NSMakeRange(0,[dirtyStringMutant length])];
|
[dirtyStringMutant replaceOccurrencesOfString:@"<"withString:@"<" options:NSLiteralSearch range:NSMakeRange(0,[dirtyStringMutant length])];
|
||||||
[dirtyStringMutant replaceOccurrencesOfString:@">"withString:@">" options:NSLiteralSearch range:NSMakeRange(0,[dirtyStringMutant length])];
|
[dirtyStringMutant replaceOccurrencesOfString:@">"withString:@">" options:NSLiteralSearch range:NSMakeRange(0,[dirtyStringMutant length])];
|
||||||
[dirtyStringMutant replaceOccurrencesOfString:@"—"withString:@"-" options:NSLiteralSearch range:NSMakeRange(0,[dirtyStringMutant length])];
|
[dirtyStringMutant replaceOccurrencesOfString:@"—"withString:@"-" options:NSLiteralSearch range:NSMakeRange(0,[dirtyStringMutant length])];
|
||||||
|
[dirtyStringMutant replaceOccurrencesOfString:@"'"withString:@"'" options:NSLiteralSearch range:NSMakeRange(0,[dirtyStringMutant length])];
|
||||||
return [dirtyStringMutant stringByRemovingCharactersInSet:[NSCharacterSet controlCharacterSet]];
|
return [dirtyStringMutant stringByRemovingCharactersInSet:[NSCharacterSet controlCharacterSet]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче