Skip to content

Commit 1548529

Browse files
authored
fixed grammar to permit var-length nonnum chains (PolusAI#260)
1 parent 7701dc5 commit 1548529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nyx/strpat.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ bool StringPattern::tokenize (
223223
std::vector<std::pair<std::string, std::string>> v
224224
{
225225
{ "[0-9]+" , t_NUM } ,
226-
{ "[a-z]+|[A-Z]+" , t_TEXT },
226+
{ "[a-z|A-Z]+" , t_TEXT },
227227
{ "~|`|!|@|#|\\$|%|\\^|&|\\(|\\)|_|-|\\+|=|\\{|\\}|\\[|]|'|;|,|\\.", t_SEP },
228228
{ "\\*", t_STAR }
229229
};

0 commit comments

Comments
 (0)