Skip to content

Commit

Permalink
Fix error with URL-scheme check
Browse files Browse the repository at this point in the history
Closes #62.
  • Loading branch information
Prussich authored and Stefan Ålund committed Oct 26, 2015
1 parent a11cb3a commit 2716818
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bowser-ios/Bowser/BowserViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -257,8 +257,8 @@ - (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
NSString *urlString;
int colonPos = [textField.text rangeOfString:@":"].location;
int dotPos = [textField.text rangeOfString:@"."].location;
NSUInteger colonPos = [textField.text rangeOfString:@":"].location;
NSUInteger dotPos = [textField.text rangeOfString:@"."].location;

if (colonPos != NSNotFound && colonPos <= 10 && (dotPos == NSNotFound || colonPos < dotPos))
urlString = textField.text;
Expand Down

0 comments on commit 2716818

Please sign in to comment.