From d05dd140ce1d707d4362609f714fa861475f0975 Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Wed, 12 Feb 2014 12:56:07 +0200 Subject: [PATCH] Add ' to allowed characters in LegacyLocator validation (#13329) Change-Id: I2503ce46b1abbf2fd237eaff538d77e565d25eb6 --- .../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 56c86bab7b..2e9d0a16d0 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