Skip to content
This repository has been archived by the owner on Feb 7, 2020. It is now read-only.

Commit

Permalink
Rollback to the previous regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien C. Thiebaud committed Oct 29, 2014
1 parent f6901e8 commit c55e54d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion STTweetLabel/STTweetLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#import "STTweetLabel.h"
#import "STTweetTextStorage.h"

#define STURLRegex @"(https?:\\/\\/)?([\\w\\-])+\\.{1}([a-zA-Z]{2,63})([\\/\\w-]*)*\\/?\\??([^#\\n\\r\\s]*)?#?([^\\n\\r\\s]*)"
#define STURLRegex @"(?i)\\b((?:[a-z][\\w-]+:(?:/{1,3}|[a-z0-9%])|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?«»“”‘’]))"

@interface STTweetLabel () <UITextViewDelegate>

Expand Down

0 comments on commit c55e54d

Please sign in to comment.