Changeset 18896 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/routines/UrlValidator.java
r18869 r18896 165 165 166 166 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); 168 168 169 169 private static final String QUERY_REGEX = "^(.*)$"; -
trunk/test/unit/org/openstreetmap/josm/data/validation/routines/UrlValidatorTest.java
r18869 r18896 566 566 new ResultPair("/..//file", false), 567 567 new ResultPair("/test1//file", false), 568 new ResultPair("/projekte-und-themen/eulen-falken-und-deren-nistkästen/trafotürme", true) 568 // non-ascii characters are invalid for URIs. See https://datatracker.ietf.org/doc/html/rfc3986#section-1.2.1 569 new ResultPair("/projekte-und-themen/eulen-falken-und-deren-nistkästen/trafotürme", false) 569 570 }; 570 571
Note:
See TracChangeset
for help on using the changeset viewer.