Skip to content

Commit

Permalink
decipher: fix n-function name regex
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamesfleming authored and corny committed Apr 15, 2022
1 parent 3599258 commit f363472
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decipher.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const (
)

var (
nFunctionNameRegexp = regexp.MustCompile("\\.get\\(\"n\"\\)\\)&&\\(b=([a-zA-Z0-9]{3})\\[(\\d+)\\](.+)\\|\\|([a-zA-Z0-9]{3})")
nFunctionNameRegexp = regexp.MustCompile("\\.get\\(\"n\"\\)\\)&&\\(b=([a-zA-Z0-9$]{0,3})\\[(\\d+)\\](.+)\\|\\|([a-zA-Z0-9]{0,3})")
actionsObjRegexp = regexp.MustCompile(fmt.Sprintf(
"var (%s)=\\{((?:(?:%s%s|%s%s|%s%s),?\\n?)+)\\};", jsvarStr, jsvarStr, swapStr, jsvarStr, spliceStr, jsvarStr, reverseStr))

Expand Down

0 comments on commit f363472

Please sign in to comment.