Changeset 18896 in josm for trunk/src


Ignore:
Timestamp:
2023-11-10T13:44:25+01:00 (13 months ago)
Author:
taylor.smock
Message:

Fix #23235: Revert r18869

The URI specification only allows for ascii characters.
See https://datatracker.ietf.org/doc/html/rfc3986#section-1.2.1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/validation/routines/UrlValidator.java

    r18869 r18896  
    165165
    166166    private static final String PATH_REGEX = "^(/[-\\w:@&?=+,.!/~*'%$_;()]*)?$";
    167     private static final Pattern PATH_PATTERN = Pattern.compile(PATH_REGEX, Pattern.UNICODE_CHARACTER_CLASS);
     167    private static final Pattern PATH_PATTERN = Pattern.compile(PATH_REGEX);
    168168
    169169    private static final String QUERY_REGEX = "^(.*)$";
Note: See TracChangeset for help on using the changeset viewer.