From: Henri Sara Date: Fri, 13 Dec 2013 07:34:35 +0000 (+0200) Subject: Allow also dots and spaces in legacy locator PIDs (#13017) X-Git-Tag: 7.2.0.beta1~169^2~5^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a8947f7f6461c6382448e9b569f49fd37d5044bf;p=vaadin-framework.git Allow also dots and spaces in legacy locator PIDs (#13017) These characters are used in automated tests of Vaadin itself. Change-Id: I7cff655e36f39c48f539487609e58eac90ec8761 --- diff --git a/client/src/com/vaadin/client/componentlocator/LegacyLocatorStrategy.java b/client/src/com/vaadin/client/componentlocator/LegacyLocatorStrategy.java index cf91d5d4ad..56c86bab7b 100644 --- a/client/src/com/vaadin/client/componentlocator/LegacyLocatorStrategy.java +++ b/client/src/com/vaadin/client/componentlocator/LegacyLocatorStrategy.java @@ -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;