From 9ef84fc27916c2e730f363d79b825212d40298d7 Mon Sep 17 00:00:00 2001 From: Haoyang Li Date: Thu, 25 Jan 2024 09:58:09 +0800 Subject: [PATCH] address comment Signed-off-by: Haoyang Li --- .../src/main/scala/com/nvidia/spark/rapids/RegexParser.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql-plugin/src/main/scala/com/nvidia/spark/rapids/RegexParser.scala b/sql-plugin/src/main/scala/com/nvidia/spark/rapids/RegexParser.scala index 4ee6cae6ab4..815314e7639 100644 --- a/sql-plugin/src/main/scala/com/nvidia/spark/rapids/RegexParser.scala +++ b/sql-plugin/src/main/scala/com/nvidia/spark/rapids/RegexParser.scala @@ -747,7 +747,7 @@ class CudfRegexTranspiler(mode: RegexMode) { e match { case RegexEscaped(ch) if escapeChars.contains(ch) => Some(escapeChars(ch).toString) case RegexEscaped(ch) if regexPunct.contains(ch) => Some(ch.toString) - case RegexChar(ch) if regexMetaChars.contains(ch) => Some(ch.toString) + case RegexChar(ch) if !regexMetaChars.contains(ch) => Some(ch.toString) case RegexSequence(parts) => parts.foldLeft[Option[String]](Some("")) { (all, x) => all match {