Skip to content

Commit 14c1e9b

Browse files
committed
add \- to identifier regex
1 parent 27e6bfe commit 14c1e9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/src/main/scala/app/softnetwork/elastic/sql/SQLParser.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ trait SQLParser extends RegexParsers with PackratParsers {
379379
private val identifierRegexStr =
380380
s"""(?i)(?!(?:${reservedKeywords.mkString(
381381
"|"
382-
)})\\b)[\\*a-zA-Z_][a-zA-Z0-9_.\\[\\]\\*]*"""
382+
)})\\b)[\\*a-zA-Z_\\-][a-zA-Z0-9_\\-.\\[\\]\\*]*"""
383383

384384
private val identifierRegex = identifierRegexStr.r // scala.util.matching.Regex
385385

0 commit comments

Comments
 (0)