diff --git a/chat/src/main/java/com/qiscus/sdk/util/QiscusPatterns.java b/chat/src/main/java/com/qiscus/sdk/util/QiscusPatterns.java index 183457bb2..a9be366c3 100644 --- a/chat/src/main/java/com/qiscus/sdk/util/QiscusPatterns.java +++ b/chat/src/main/java/com/qiscus/sdk/util/QiscusPatterns.java @@ -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. @@ -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)"; @@ -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 + ")" +