Modify ↓
#9783 closed defect (fixed)
Not matching parentheses in regex
Reported by: | naoliv | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | 14.05 |
Component: | Core validator | Version: | |
Keywords: | mapcss | Cc: |
Description
http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html#bs says that to match something having a parentheses we need to double escape it.
Using this rule
*[name =~ /\\(foo\\)/] { throwWarning: tr("foo"); }
and something with name=(foo)
doesn't match anything, however.
No error is displayed on console (so it seems to be parsed correctly).
Attachments (0)
Change History (3)
comment:1 by , 11 years ago
Keywords: | mapcss added |
---|
comment:2 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:3 by , 11 years ago
Milestone: | → 14.05 |
---|
Note:
See TracTickets
for help on using tickets.
In 7115/josm: