New regular expression to autolink URLs
Introduced a new regular expression to autolink URLs. Previous regular expression used the protocol as an optional rule. The new expression applies separate rules for strings that do not start with a known protocol and strings that do start with a known protocol. - In order to reuse previous regular expression definitions for different parts of a URL, created constants for different parts of WEB_URL expression. - Separated the test cases for WEB_URL in order to remove the suppress command and make them running again. - Fixed failing tests for punycode urls, which were causing existing tests to fail. - Introduced new a regular expression for URL matching. - Changed the protocol rule to be case insensitive. - Updated IANA TLDs. - Added tests for the new regular expression. - Added tests for Linkify. - Bug 9622849 is partially fixed. Bug: 25727599 Bug: 9622849 Bug: 24500693 Bug: 23189367 Bug: 24543148 Change-Id: Ifd62455d342ca7adb22996246ff652e1d5944bec
Loading
Please register or sign in to comment