Modify

Opened 6 years ago

Closed 3 years ago

Last modified 3 years ago

#16171 closed defect (fixed)

Case sensitive regexp key=value searches aren't case sensitive

Reported by: anonymous Owned by: simon04
Priority: normal Milestone: 21.04
Component: Core Version: latest
Keywords: search regex Cc: gaben

Description

Consider this search, assuming that I have some key values available that are 'Ut', 'UT', 'uT', 'ut'.

Search string: "addr:state"="^Ut$"
[x] Replace selection
[x] case sensitive
[x] regular expression

What I want here is obvious: addr:state keys with the value of exactly 'Ut'.

What is returned is anything with '[Uu][Tt]'. In other words, this type of search doesn't respect case sensitivity even though I've told it to.


By contrast, this search works properly and does use case sensitivity using a valuefragment:
Search string: "addr:state":"^Ut$"
[x] Replace selection
[x] case sensitive
[x] regular expression

So what I'm asking for is key=value regexp case sensitive searches to be treated the same way as key:value regexp case sensitive searches.

Attachments (0)

Change History (7)

comment:1 by anonymous, 5 years ago

Version: latest

For me, the regex searches are always case insensitive no matter what I do.

With this expression ~90% of the search results start with lowercase letter: name:"^[a-z].*". But it should only return objects with lowercase starting character.

I'm using the latest JOSM dev version r15298.

comment:2 by gaben, 5 years ago

Cc: gaben added

The previous comment was from me.

comment:3 by gaben, 3 years ago

Keywords: search added

comment:4 by gaben, 3 years ago

Keywords: regex added

comment:5 by simon04, 3 years ago

Milestone: 21.04
Owner: changed from team to simon04
Status: newassigned

comment:6 by simon04, 3 years ago

Resolution: fixed
Status: assignedclosed

In 17746/josm:

fix #16171 - Case sensitive regexp key=value searches aren't case sensitive

comment:7 by gaben, 3 years ago

Oh, it was missing the whole time the case sensitivity flag. Thanks for the fix!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain simon04.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.