Skip to content

Commit

Permalink
update test for swift 1.2.
Browse files Browse the repository at this point in the history
  • Loading branch information
nori0620 committed Aug 2, 2015
1 parent 0385388 commit 64bf4e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .travis.yml
@@ -1,4 +1,5 @@
language: objective-c
osx_image: xcode6.4

script:
- bundle exec rake default
2 changes: 1 addition & 1 deletion SwiftFilePathTests/SwiftFilePathTests.swift
Expand Up @@ -16,7 +16,7 @@ extension String {
func match(pattern: String) -> Bool {
var error : NSError?
let matcher = NSRegularExpression(pattern: pattern, options: nil, error: &error)
return matcher?.numberOfMatchesInString(self, options: nil, range: NSMakeRange(0, self.utf16Count)) != 0
return matcher?.numberOfMatchesInString(self, options: nil, range: NSMakeRange(0, count(self.utf16))) != 0
}

}
Expand Down

0 comments on commit 64bf4e3

Please sign in to comment.