Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
zetbaitsu committed Jun 15, 2017
1 parent 0a2d60b commit 4e267ea
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions chat/src/main/java/com/qiscus/sdk/util/QiscusPatterns.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@

package com.qiscus.sdk.util;

import android.support.annotation.RestrictTo;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
* Commonly used regular expression patterns.
*/
@RestrictTo(RestrictTo.Scope.LIBRARY)
public class QiscusPatterns {
/**
* Regular expression to match all IANA top-level domains.
Expand Down Expand Up @@ -162,8 +165,6 @@ public class QiscusPatterns {
* List accurate as of 2015/11/24. List taken from:
* http://data.iana.org/TLD/tlds-alpha-by-domain.txt
* This pattern is auto-generated by frameworks/ex/common/tools/make-iana-tld-pattern.py
*
* @hide
*/
static final String IANA_TOP_LEVEL_DOMAINS = "(?:com|net|org|biz|id|co.id)";

Expand Down Expand Up @@ -347,9 +348,7 @@ public class QiscusPatterns {

/**
* Regular expression pattern to match email addresses. It excludes double quoted local parts
* and the special characters #&~!^`{}/=$*?| that are included in RFC5321.
*
* @hide
* and the special characters that are included in RFC5321.
*/
public static final Pattern AUTOLINK_EMAIL_ADDRESS = Pattern.compile("(" + WORD_BOUNDARY +
"(?:" + EMAIL_ADDRESS_LOCAL_PART + "@" + EMAIL_ADDRESS_DOMAIN + ")" +
Expand Down

0 comments on commit 4e267ea

Please sign in to comment.