Skip to content

Commit d527133

Browse files
committed
FIX: Single character alternation warning in regex
1 parent a960578 commit d527133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydra/engine/task.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def split_cmd(cmd: str):
860860
args = shlex.split(cmd, posix=on_posix)
861861
cmd_args = []
862862
for arg in args:
863-
match = re.match("('|\")(.*)\\1$", arg)
863+
match = re.match("(['\"])(.*)\\1$", arg)
864864
if match:
865865
cmd_args.append(match.group(2))
866866
else:

0 commit comments

Comments
 (0)