diff options
author | som-snytt <som.snytt@gmail.com> | 2016-05-11 04:58:27 -0700 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2016-05-11 13:58:27 +0200 |
commit | fec54d6bb437280e74e4ec0286e42ae757b9b691 (patch) | |
tree | 87a0d1daddcc6bcb45e574d0bc58e1ac47e2a093 /bincompat-backward.whitelist.conf | |
parent | a7bc60b6aae21601c7fb16fb9218e46b9c866658 (diff) | |
download | scala-fec54d6bb437280e74e4ec0286e42ae757b9b691.tar.gz scala-fec54d6bb437280e74e4ec0286e42ae757b9b691.tar.bz2 scala-fec54d6bb437280e74e4ec0286e42ae757b9b691.zip |
SI-9666: Use inline group names in Regex (#4990)
Delegate `Match group name` to the underlying `matcher`.
If that fails, try explicit group names as a fall back.
No attempt is made to correlate inline and explicit names.
In the following case, either name is accepted:
```
new Regex("a(?<Bar>b*)c", "Bee")
```
But if names are reversed, the error is undetected:
```
new Regex("a(?<Bee>b*)(?<Bar>c)", "Bar", "Bee")
```
Throw IllegalArg on bad group name to be consistent with Java.
Diffstat (limited to 'bincompat-backward.whitelist.conf')
0 files changed, 0 insertions, 0 deletions