Skip to content

Commit c2f8b9b

Browse files
author
Johannes Kroll
committed
fix overly strict command regex
1 parent 9aec637 commit c2f8b9b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/gp/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,8 @@ def isValidCommandString(command): #static # fast OK
18211821
if type(command) != str:
18221822
return False
18231823

1824-
if not re.match('^[a-zA-Z_][-\w]*\s*(:?\s*$|[\s!&]+\w|[|<>#])', command):
1824+
#~ if not re.match('^[a-zA-Z_][-\w]*\s*(:?\s*$|[\s!&]+\w|[|<>#])', command):
1825+
if not re.match('^[a-zA-Z_][-\w]*\s*', command):
18251826
return False # must start with a valid command
18261827

18271828
if re.search('[\0-\x1F\x80-\xFF]', command):

0 commit comments

Comments
 (0)