Created
January 20, 2016 09:55
-
-
Save vahotm/9c80315236480c471bd7 to your computer and use it in GitHub Desktop.
Following regex matches cyrillic characters in localization keys for NSLocalizedString
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Following regex matches cyrillic characters in localization keys for NSLocalizedString | |
//--------------------------------------------------------------------------------------- | |
NSLocalizedString\(@"([\w\s\d]*?)([а-яА-Я]+)([\w\s\d]*?)" | |
//---------------------------------- | |
// Test cases | |
//---------------------------------- | |
NSLocalizedString(@"Notification", nil) | |
NSLocalizedString(@"Notificatio n ъ s df | |
", nil) | |
NSLocalizedString(@"Nъ", nil) | |
NSLocalizedString(@"nъ", nil) | |
NSLocalizedString(@"ъ", nil) | |
NSLocalizedString(@"ъываыва", nil) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment