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

henrib pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-jexl.git


The following commit(s) were added to refs/heads/master by this push:
     new 1613b323 JEXL: regression parsing strings containing \t, reverting to 
previous code
1613b323 is described below

commit 1613b3232afb9b2dcc347594e3841117faff01f7
Author: henrib <hen...@apache.org>
AuthorDate: Mon Aug 29 14:32:30 2022 +0200

    JEXL: regression parsing strings containing \t, reverting to previous code
---
 src/main/java/org/apache/commons/jexl3/parser/Parser.jjt | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/commons/jexl3/parser/Parser.jjt 
b/src/main/java/org/apache/commons/jexl3/parser/Parser.jjt
index 9f18d53c..09b46846 100644
--- a/src/main/java/org/apache/commons/jexl3/parser/Parser.jjt
+++ b/src/main/java/org/apache/commons/jexl3/parser/Parser.jjt
@@ -285,11 +285,9 @@ TOKEN_MGR_DECLS : {
 <*> TOKEN :
 {
   < STRING_LITERAL:
-    "\"" (~["\"","\\","\n","\r","\t","\f","\b","\u2028","\u2029"]
-          | "\\" ~["\n","\r","\t","\f","\b","\u2028","\u2029"])* "\""
+    "\"" (~["\"","\\","\n","\r","\u2028","\u2029"] | "\\" 
~["\n","\r","\u2028","\u2029"])* "\""
   |
-    "'" (~["'","\\","\n","\r","\t","\f","\b","\u2028","\u2029"]
-         | "\\" ~["\n","\r","\t","\f","\b","\u2028","\u2029"])* "'"
+    "'" (~["'","\\","\n","\r","\u2028","\u2029"] | "\\" 
~["\n","\r","\u2028","\u2029"])* "'"
   > { popDot(); } /* Revert state to default if was DOT_ID. */
 }
 

Reply via email to