File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ open class Router: WebApp {
6262 let matches = regex. matches (
6363 in: searchPath,
6464 options: [ ] ,
65- range: NSRange ( location: 0 , length: searchPath. characters . count)
65+ range: NSRange ( location: 0 , length: searchPath. count)
6666 )
6767 if !matches. isEmpty {
6868 let searchPath = searchPath as NSString
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class DataResponseTests: XCTestCase {
5454 items: receivedHeaders ?? [ ]
5555 )
5656 XCTAssertEqual ( headersDict [ " Content-Type " ] , " application/my-format " )
57- XCTAssertEqual ( Int ( headersDict [ " Content-Length " ] ?? " 0 " ) , " hello " . characters . count)
57+ XCTAssertEqual ( Int ( headersDict [ " Content-Length " ] ?? " 0 " ) , " hello " . count)
5858 XCTAssertEqual ( headersDict [ " X-Foo-Bar " ] , " header " )
5959
6060 XCTAssertEqual ( receivedData. count, 2 )
You can’t perform that action at this time.
0 commit comments