snapshot/lib/assets/SnapshotHelper.swift in fastlane-2.127.0.beta.20190704200049 vs snapshot/lib/assets/SnapshotHelper.swift in fastlane-2.127.0.beta.20190705200056

- old
+ new

@@ -176,11 +176,11 @@ let screenshot = XCUIScreen.main.screenshot() guard var simulator = ProcessInfo().environment["SIMULATOR_DEVICE_NAME"], let screenshotsDir = screenshotsDirectory else { return } do { // The simulator name contains "Clone X of " inside the screenshot file when running parallelized UI Tests on concurrent devices - let regex = try NSRegularExpression(pattern: "Clone [0-1]+ of ") + let regex = try NSRegularExpression(pattern: "Clone [0-9]+ of ") let range = NSMakeRange(0, simulator.count) simulator = regex.stringByReplacingMatches(in: simulator, range: range, withTemplate: "") let path = screenshotsDir.appendingPathComponent("\(simulator)-\(name).png") try screenshot.pngRepresentation.write(to: path) @@ -298,6 +298,6 @@ } } // Please don't remove the lines below // They are used to detect outdated configuration files -// SnapshotHelperVersion [1.18] +// SnapshotHelperVersion [1.19]