-
Notifications
You must be signed in to change notification settings - Fork 123
Conversation
@@ -94,15 +94,16 @@ | |||
"台灣|新加坡|香港|한국" + | |||
")(?=[^\\p{Alnum}@]|$))"; | |||
private static final String URL_PUNYCODE = "(?:xn--[0-9a-z]+)"; | |||
private static final String SPECIAL_URL_VALID_CCTLD = "(?:(?:" + "co|tv" + ")(?=[^\\p{Alnum}@]|$))"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we avoid string concatenation here and just use the final "(?:(?:co|tv)(?=[^\\p{Alnum}@]|$))"
string?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we can. I was a little worried when we will have many ccTLD in here in the future :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see. You can put them in a separate constant right away then. It's up to you though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the fact that it is split, easier to read :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, having many same string like ")(?=[^\\p{Alnum}@]|$))"
isn't cool :P
|
Make sure there are at least tickets in rb/js/objc/conformance |
Yes, rb/js/objc are remaining. |
No description provided.