splunk / splunk-sdk-python

Splunk Software Development Kit for Python
http://dev.splunk.com
Apache License 2.0
687 stars 369 forks source link

Fix #309, avoid catastrophic backtracking in searchcommands.internals #312

Closed mschwager closed 3 years ago

mschwager commented 4 years ago

Adding \\ to [^"] avoids overlap with \\. in the branch. Without this the regex can catastrophically backtrack between the two branches.