Skip to content

Commit

Permalink
Merge pull request #2195 from sobolevn/patch-1
Browse files Browse the repository at this point in the history
Use raw strings to define a regex in `packer.py`
  • Loading branch information
bitwiseman authored Nov 6, 2023
2 parents 99347ac + 33d9bf2 commit 425755f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/jsbeautifier/unpackers/packer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def detect(source):
begin_offset = -1
"""Detects whether `source` is P.A.C.K.E.R. coded."""
mystr = re.search(
"eval[ ]*\([ ]*function[ ]*\([ ]*p[ ]*,[ ]*a[ ]*,[ ]*c["
r"eval[ ]*\([ ]*function[ ]*\([ ]*p[ ]*,[ ]*a[ ]*,[ ]*c["
" ]*,[ ]*k[ ]*,[ ]*e[ ]*,[ ]*",
source,
)
Expand Down

0 comments on commit 425755f

Please sign in to comment.