From: Teemu Suo-Anttila Date: Wed, 12 Feb 2014 10:56:07 +0000 (+0200) Subject: Add ' to allowed characters in LegacyLocator validation (#13329) X-Git-Tag: 7.2.0.beta1~162 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d05dd140ce1d707d4362609f714fa861475f0975;p=vaadin-framework.git Add ' to allowed characters in LegacyLocator validation (#13329) Change-Id: I2503ce46b1abbf2fd237eaff538d77e565d25eb6 --- 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;