Modify

Opened 4 years ago

Closed 14 months ago

Last modified 14 months 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 Changed 3 years ago by anonymous

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 Changed 3 years ago by gaben

Cc: gaben added

The previous comment was from me.

comment:3 Changed 14 months ago by gaben

Keywords: search added

comment:4 Changed 14 months ago by gaben

Keywords: regex added

comment:5 Changed 14 months ago by simon04

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

comment:6 Changed 14 months ago by simon04

Resolution: fixed
Status: assignedclosed

In 17746/josm:

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

comment:7 Changed 14 months ago by gaben

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.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.