diff options
author | Siyamed Sinir <siyamed@google.com> | 2015-11-18 15:02:57 -0800 |
---|---|---|
committer | Siyamed Sinir <siyamed@google.com> | 2016-01-04 17:59:45 -0800 |
commit | 840385c9f6a2805d6f54f08f3592d80facdf5b3d (patch) | |
tree | 599e966e5122a12d9d3bb1bd4b095eb3264e81da /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 8190e5dca4d1ea42e34728122f4fd8c91013c8f9 (diff) |
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
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions