sytanx refine

This commit is contained in:
秦宇航
2018-10-11 11:38:17 +08:00
parent 533f95398a
commit bb6b71da89
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ open class NetWorkMonitor: NSObject {
let pattern = "en\\w+\\s+(\\d+)\\s+(\\d+)\\s+(\\d+)\\s+(\\d+)"
do {
let regex = try NSRegularExpression(pattern: pattern, options: NSRegularExpression.Options.caseInsensitive)
let results = regex.matches(in: string, options: NSRegularExpression.MatchingOptions(rawValue: 0), range: NSMakeRange(0, string.characters.count))
let results = regex.matches(in: string, options: NSRegularExpression.MatchingOptions(rawValue: 0), range: NSMakeRange(0, string.count))
var upRate: Float = 0.00
var downRate: Float = 0.00
for result in results {