Update submodules

This commit is contained in:
Ilya Laktyushin
2019-05-03 05:46:07 +04:00
parent 0eabac3f76
commit d14ea5e95e
2 changed files with 2 additions and 2 deletions

View File

@@ -107,7 +107,7 @@ open class Snapshot: NSObject {
do {
let launchArguments = try String(contentsOf: path, encoding: String.Encoding.utf8)
let regex = try NSRegularExpression(pattern: "(\\\".+?\\\"|\\S+)", options: [])
let matches = regex.matches(in: launchArguments, options: [], range: NSRange(location:0, length:launchArguments.characters.count))
let matches = regex.matches(in: launchArguments, options: [], range: NSRange(location:0, length: launchArguments.count))
let results = matches.map { result -> String in
(launchArguments as NSString).substring(with: result.range)
}