diff options
| author | Victor Chang <vichang@google.com> | 2019-05-28 16:04:48 +0100 |
|---|---|---|
| committer | Victor Chang <vichang@google.com> | 2019-05-28 18:33:31 +0100 |
| commit | 7d546046f856ae5f055f2ec82718608057d80cc7 (patch) | |
| tree | ea23fd493b921e2d1687b8cad474a4873c582a5f /annotations/generate_annotated_java_files.py | |
| parent | 80a5d30dbe5def53303dbb2404c97522b98e2009 (diff) | |
Optional capturing group should not be replaced with "null" string
2 issues:
- Optional capturing group should not be replaced with "null" string
Example: "ac".replaceAll("(a)(b)?c","_$1_$2_") should not return "_a_null_"
- Group name containing numeric character, e.g. number1, should not
recognized as group number 1.
Example: "ac".replaceAll("(a)(?<name1>b)?c","_$1_${name1}_) should not
return "_a_a}_", but "_a__"
Bug: 133656617
Test: OldMatcherTest
Change-Id: Iaf8d086f8047a3f88e5a91505836ef0c5fd0ddcd
Diffstat (limited to 'annotations/generate_annotated_java_files.py')
0 files changed, 0 insertions, 0 deletions
