File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1853,14 +1853,14 @@ ${providers}
18531853 break
18541854 } //输出内容结束
18551855 body = body . replace ( / \n { 2 , } / g, '\n\n' )
1856- if ( ! isSurgeiOS && ! isLooniOS && sgArg . length > 0 ) {
1856+ if ( isStashiOS && sgArg . length > 0 ) {
18571857 body = body . replaceAll ( '{{{' , '{' ) . replaceAll ( '}}}' , '}' )
18581858 for ( let i = 0 ; i < sgArg . length ; i ++ ) {
18591859 let e = '{' + sgArg [ i ] . key + '}'
18601860 let r = sgArg [ i ] . value . split ( ',' ) [ 0 ]
18611861 body = body . replaceAll ( e , r )
18621862 } //for
1863- } else if ( isSurgeiOS ) {
1863+ } else if ( isSurgeiOS || isShadowrocket ) {
18641864 body = body . replaceAll ( '{{{' , '{' ) . replaceAll ( '}}}' , '}' )
18651865 for ( let i = 0 ; i < sgArg . length ; i ++ ) {
18661866 let e = '{' + sgArg [ i ] . key + '}'
Original file line number Diff line number Diff line change @@ -1853,14 +1853,14 @@ ${providers}
18531853 break
18541854 } //输出内容结束
18551855 body = body . replace ( / \n { 2 , } / g, '\n\n' )
1856- if ( ! isSurgeiOS && ! isLooniOS && sgArg . length > 0 ) {
1856+ if ( isStashiOS && sgArg . length > 0 ) {
18571857 body = body . replaceAll ( '{{{' , '{' ) . replaceAll ( '}}}' , '}' )
18581858 for ( let i = 0 ; i < sgArg . length ; i ++ ) {
18591859 let e = '{' + sgArg [ i ] . key + '}'
18601860 let r = sgArg [ i ] . value . split ( ',' ) [ 0 ]
18611861 body = body . replaceAll ( e , r )
18621862 } //for
1863- } else if ( isSurgeiOS ) {
1863+ } else if ( isSurgeiOS || isShadowrocket ) {
18641864 body = body . replaceAll ( '{{{' , '{' ) . replaceAll ( '}}}' , '}' )
18651865 for ( let i = 0 ; i < sgArg . length ; i ++ ) {
18661866 let e = '{' + sgArg [ i ] . key + '}'
You can’t perform that action at this time.
0 commit comments