Skip to content

Commit e604e92

Browse files
author
Taois
committed
feat: decoder support filter
1 parent 7dd79d9 commit e604e92

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs_drpy/drpyCustom.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ export const objectToQueryString = (obj) => {
693693
export async function getOriginalJs(js_code) {
694694
// let current_match = /var rule|[\u4E00-\u9FA5]+|function|let |var |const |\(|\)|"|'/;
695695
let current_match = /var rule|function|let |var |const|class Rule|async|this\./;
696+
let current_match1 = /["{}]/;
696697
if (current_match.test(js_code)) {
697698
return js_code
698699
}
@@ -773,7 +774,7 @@ export async function getOriginalJs(js_code) {
773774
// },
774775
]
775776
let func_index = 0
776-
while (!current_match.test(decode_content)) {
777+
while (!current_match.test(decode_content) && !current_match1.test(decode_content)) {
777778
decode_content = decode_funcs[func_index](js_code);
778779
func_index++;
779780
if (func_index >= decode_funcs.length) {

0 commit comments

Comments
 (0)