@@ -27,7 +27,7 @@ final class RegularExpressionTests: XCTestCase {
2727 guard let match = regex. match ( string, options: [ ] )
2828 else { XCTFail ( " Could not find match " ) ; return }
2929
30- let stringRange = NSRange ( match. range)
30+ let stringRange = NSRange ( Range ( match. range) )
3131
3232 #if os(Linux)
3333 let matchString = NSString ( string: string) . substringWithRange ( stringRange)
@@ -49,7 +49,7 @@ final class RegularExpressionTests: XCTestCase {
4949 guard let match = regex. match ( string, options: [ ] )
5050 else { XCTFail ( " Could not find match " ) ; return }
5151
52- let stringRange = NSRange ( match. range)
52+ let stringRange = NSRange ( Range ( match. range) )
5353
5454 #if os(Linux)
5555 let matchString = NSString ( string: string) . substringWithRange ( stringRange)
@@ -70,7 +70,7 @@ final class RegularExpressionTests: XCTestCase {
7070 guard let match = regex. match ( string, options: [ ] )
7171 else { XCTFail ( " Could not find match " ) ; return }
7272
73- let stringRange = NSRange ( match. range)
73+ let stringRange = NSRange ( Range ( match. range) )
7474
7575 #if os(Linux)
7676 let matchString = NSString ( string: string) . substringWithRange ( stringRange)
@@ -91,7 +91,7 @@ final class RegularExpressionTests: XCTestCase {
9191 guard let match = regex. match ( string, options: [ ] )
9292 else { XCTFail ( " Could not find match " ) ; return }
9393
94- let stringRange = NSRange ( match. range)
94+ let stringRange = NSRange ( Range ( match. range) )
9595
9696 #if os(Linux)
9797 let matchString = NSString ( string: string) . substringWithRange ( stringRange)
0 commit comments