]> source.dussan.org Git - vaadin-framework.git/commitdiff
Allow also dots and spaces in legacy locator PIDs (#13017)
authorHenri Sara <hesara@vaadin.com>
Fri, 13 Dec 2013 07:34:35 +0000 (09:34 +0200)
committerHenri Sara <hesara@vaadin.com>
Fri, 13 Dec 2013 07:34:35 +0000 (09:34 +0200)
These characters are used in automated tests of Vaadin itself.

Change-Id: I7cff655e36f39c48f539487609e58eac90ec8761

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

index cf91d5d4adbb53472f7fb2db730748916d66a7fa..56c86bab7be0acc4e098e1065803e4108304714a 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;