[Desc.]
[Issue] Redmine-8381
Change-Id: I692d2c71b72e7ae24cb60c150a0057d354136af7
* Online validation: http://projects.scottsplayground.com/iri/demo/
*/
public static boolean checkForIRI(String value) {
- Pattern pattern = Pattern.compile(REGEX_IRI);
+ Pattern pattern = Pattern.compile(REGEX_IRI, Pattern.CASE_INSENSITIVE);
Matcher matcher = pattern.matcher(value);
return matcher.matches();
"http://example.org/contact.nl",
"http://example.org/contact?lang=nl",
"http://example.org/nl/contact",
+ "http://example.org/nl/Contact",
+ "http://example.org/nl/CONTACT",
"cxd:dsf",
"ftp://fds",
"irc://fdf"