diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r-- | sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/xpath/XPathHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/xpath/XPathHelper.java b/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/xpath/XPathHelper.java index f1eb6dc78a..d364aa199f 100644 --- a/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/xpath/XPathHelper.java +++ b/sca-java-2.x/trunk/modules/common-xml/src/main/java/org/apache/tuscany/sca/common/xml/xpath/XPathHelper.java @@ -121,7 +121,7 @@ public class XPathHelper { private Collection<String> getPrefixes(String expression) { Collection<String> prefixes = new HashSet<String>(); prefixes.add(XMLConstants.DEFAULT_NS_PREFIX); - Pattern pattern = Pattern.compile("([^:]+):([^:]+)"); + Pattern pattern = Pattern.compile("([a-zA-Z.]+):([a-zA-Z.]+)"); Matcher matcher = pattern.matcher(expression); while (matcher.find()) { String prefix = extractNCName(matcher.group(1), true); |