Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions genstrings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class GenStrings {
let excludedFileNames = ["genstrings.swift"]
var regularExpresions = [String:NSRegularExpression]()

let localizedRegex = "(?<=\")([^\"]*)(?=\".(localized|localizedFormat))|(?<=(Localized|NSLocalizedString)\\(\")([^\"]*?)(?=\")"
let localizedRegex = "(?<=\")(.*?)(?=\".(localized|localizedFormat))|(?<=(Localized|NSLocalizedString)\\(\")([^\"]*?)(?=\")"

enum GenstringsError: Error {
case Error
Expand Down Expand Up @@ -122,4 +122,4 @@ if CommandLine.arguments.count > 1 {
genStrings.perform(path: path)
} else {
genStrings.perform()
}
}