[Title] Fixed widget id validation
authorchanghyun1.lee <changhyun1.lee@samsung.com>
Thu, 14 Feb 2013 01:38:15 +0000 (10:38 +0900)
committerchanghyun1.lee <changhyun1.lee@samsung.com>
Thu, 14 Feb 2013 01:38:15 +0000 (10:38 +0900)
[Desc.]
[Issue] Redmine-8381

Change-Id: I692d2c71b72e7ae24cb60c150a0057d354136af7

org.tizen.common/src/org/tizen/common/util/ValidationUtil.java
org.tizen.common/test/src/org/tizen/common/util/ValidationUtilTest.java

index ada8fc5..ae3c803 100644 (file)
@@ -85,7 +85,7 @@ public class ValidationUtil {
      * 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();
index e85977e..ed4377d 100755 (executable)
@@ -118,6 +118,8 @@ public class ValidationUtilTest {
                 "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"