#4621 closed defect (duplicate)
Search key values beginning with number doesn't work
| Reported by: | Ldp | Owned by: | team |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Core | Version: | |
| Keywords: | Cc: |
Description
Create an object, tag it with foo=2bar. Searching for foo=2bar doesn't find any objects. Searching for foo="2bar" works. Why are the quotes a requirement? Am I missing a special search mode where a key value beginning with a number means something special to the search engine?
Attachments (0)
Change History (3)
comment:1 by , 16 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
comment:3 by , 16 years ago
Fine, but what does the number mean to the search compiler, in this specific case? Is this parsing just a byproduct of the generic parsing for the other search options that have numberic modifiers, like nodes: and timestamp: ?



This is the way JOSM currently works. If a string starts with a digit the search compiler tries to read a number.