зеркало из https://github.com/mozilla/gecko-dev.git
Bug 316965, importing bookmarks from the fox brings apostrophes in as '. Seek and destroy, or find and replace. Patch by Chris Lawson <bugzilla@chrislawson.net>. Camino-only-npotdb. r=pink
This commit is contained in:
Родитель
389ab1d43b
Коммит
d9d0acce6c
|
@ -233,6 +233,8 @@
|
|||
[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])];
|
||||
// fix import from old Firefox versions, which exported ' instead of a plain apostrophe
|
||||
[dirtyStringMutant replaceOccurrencesOfString:@"'"withString:@"'" options:NSLiteralSearch range:NSMakeRange(0,[dirtyStringMutant length])];
|
||||
return [dirtyStringMutant stringByRemovingCharactersInSet:[NSCharacterSet controlCharacterSet]];
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче