From a8947f7f6461c6382448e9b569f49fd37d5044bf Mon Sep 17 00:00:00 2001 From: Henri Sara Date: Fri, 13 Dec 2013 09:34:35 +0200 Subject: [PATCH] Allow also dots and spaces in legacy locator PIDs (#13017) These characters are used in automated tests of Vaadin itself. Change-Id: I7cff655e36f39c48f539487609e58eac90ec8761 --- .../vaadin/client/componentlocator/LegacyLocatorStrategy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5