Skip to content

Commit

Permalink
Fix issue where bridge parser would not accept 5-digit port numbers (…
Browse files Browse the repository at this point in the history
…reported by Andrew Auerbach)
  • Loading branch information
mtigas committed Jan 2, 2015
1 parent e8d9fac commit 8495f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OnionBrowser/OnionBrowser/BridgeEditViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ -(void)saveAndGoBack {
titleEditField.autocorrectionType = UITextAutocorrectionTypeNo;

NSRegularExpression *regex = [NSRegularExpression
regularExpressionWithPattern:@"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?):[0-9]{1,4}$"
regularExpressionWithPattern:@"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?):[0-9]{1,5}$"
options:NSRegularExpressionCaseInsensitive
error:nil];
NSUInteger numberOfMatches = [regex numberOfMatchesInString:titleEditField.text
Expand Down

0 comments on commit 8495f94

Please sign in to comment.