mirror of
https://github.com/beautifier/js-beautify.git
synced 2024-11-23 12:49:40 +00:00
Merge pull request #2195 from sobolevn/patch-1
Use raw strings to define a regex in `packer.py`
This commit is contained in:
commit
425755f12a
@ -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,
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user