Skip to content

Commit

Permalink
Change the default file encoding to UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
c99koder committed Mar 3, 2013
1 parent b2d39e9 commit 0974b32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .settings/org.eclipse.core.resources.prefs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#Fri Mar 01 12:50:54 PST 2013
#Sat Mar 02 23:38:34 PST 2013
eclipse.preferences.version=1
encoding//src/com/irccloud/android/CollapsedEventsList.java=UTF-8
encoding//src/com/irccloud/android/EventsDataSource.java=UTF-8
encoding//src/com/irccloud/android/MessageViewFragment.java=UTF-8
encoding/<project>=UTF-8
2 changes: 1 addition & 1 deletion src/com/irccloud/android/ColorFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public final boolean acceptMatch(CharSequence s, int start, int end) {
}
}, null);
//based on http://daringfireball.net/2010/07/improved_regex_for_matching_urls
Linkify.addLinks(output, Pattern.compile("https?://((?:|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?ÇÈÒÓÔÕ]))"), null, null, null);
Linkify.addLinks(output, Pattern.compile("https?://((?:|www\\d{0,3}[.]|[a-z0-9.\\-]+[.][a-z]{2,4}/)(?:[^\\s()<>]+|\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\))+(?:\\(([^\\s()<>]+|(\\([^\\s()<>]+\\)))*\\)|[^\\s`!()\\[\\]{};:'\".,<>?«»“”‘’]))"), null, null, null);
Linkify.addLinks(output, Patterns.EMAIL_ADDRESS, "mailto:");
Linkify.addLinks(output, Pattern.compile("ircs?://[^<>\"()\\[\\],\\s]+"), null, null, new TransformFilter() {
public final String transformUrl(final Matcher match, String url) {
Expand Down

0 comments on commit 0974b32

Please sign in to comment.