]> source.dussan.org Git - vaadin-framework.git/commitdiff
Add ' to allowed characters in LegacyLocator validation (#13329)
authorTeemu Suo-Anttila <teemusa@vaadin.com>
Wed, 12 Feb 2014 10:56:07 +0000 (12:56 +0200)
committerTeemu Suo-Anttila <teemusa@vaadin.com>
Wed, 12 Feb 2014 10:56:07 +0000 (12:56 +0200)
Change-Id: I2503ce46b1abbf2fd237eaff538d77e565d25eb6

client/src/com/vaadin/client/componentlocator/LegacyLocatorStrategy.java

index 56c86bab7be0acc4e098e1065803e4108304714a..2e9d0a16d0a499225c4afb67ac27dc9b19962659 100644 (file)
@@ -75,7 +75,7 @@ public class LegacyLocatorStrategy implements LocatorStrategy {
     private final ApplicationConnection client;
 
     private static final RegExp validSyntax = RegExp
-            .compile("^((\\w+::)?((PID_S)?\\w[-$_a-zA-Z0-9. ]*)?)?(/[-$_a-zA-Z0-9]+\\[\\d+\\])*/?(#.*)?$");
+            .compile("^((\\w+::)?((PID_S)?\\w[-$_a-zA-Z0-9.' ]*)?)?(/[-$_a-zA-Z0-9]+\\[\\d+\\])*/?(#.*)?$");
 
     public LegacyLocatorStrategy(ApplicationConnection clientConnection) {
         client = clientConnection;