mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
389ab1d43b
commit
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]];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user