You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mu...@apache.org on 2023/08/31 09:34:14 UTC

[xalan-java] branch xalan-j_xslt3.0 updated: committing a fix within function fn:contains-token's implementation codebase

This is an automated email from the ASF dual-hosted git repository.

mukulg pushed a commit to branch xalan-j_xslt3.0
in repository https://gitbox.apache.org/repos/asf/xalan-java.git


The following commit(s) were added to refs/heads/xalan-j_xslt3.0 by this push:
     new 550e52b5 committing a fix within function fn:contains-token's implementation codebase
     new 9bffb200 Merge pull request #72 from mukulga/xalan-j_xslt3.0_mukul
550e52b5 is described below

commit 550e52b509473c8cd04a65c505ad3d0ab3d285ae
Author: Mukul Gandhi <ga...@gmail.com>
AuthorDate: Thu Aug 31 15:00:03 2023 +0530

    committing a fix within function fn:contains-token's implementation codebase
---
 src/org/apache/xpath/functions/FuncContainsToken.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/org/apache/xpath/functions/FuncContainsToken.java b/src/org/apache/xpath/functions/FuncContainsToken.java
index f0a47ffa..a9fb644e 100644
--- a/src/org/apache/xpath/functions/FuncContainsToken.java
+++ b/src/org/apache/xpath/functions/FuncContainsToken.java
@@ -134,7 +134,7 @@ public class FuncContainsToken extends FunctionMultiArgs {
            for (int idx1 = 0; idx1 < arg0StrList.size(); idx1++) {
               String strVal = arg0StrList.get(idx1);
               // split this string at whitespace boundaries
-              String[] strPartsArr = strVal.split("\s+");
+              String[] strPartsArr = strVal.split("\\s+");
               for (int idx2 = 0; idx2 < strPartsArr.length; idx2++) {
                  String strPart = strPartsArr[idx2];
                  if (xpathCollationSupport.compareStringsUsingCollation(strPart, tokenStrVal, 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xalan.apache.org
For additional commands, e-mail: commits-help@xalan.apache.org