@@ -559,7 +559,7 @@ if (binaryInfo != null && binaryInfo.length > 0) {
559559
560560 if ( / \s ( ( r e q u e s t | r e s p o n s e ) - b o d y - j s o n - j q ) \s / . test ( _x ) ) {
561561 let [ _ , regex , type , value ] = _x . match ( / ^ ( .* ?) \s + ?(?: ( r e q u e s t | r e s p o n s e ) - b o d y - j s o n - j q ) \s + ?( .* ?) \s * $ / )
562- if ( jqEnabled && isSurgeiOS ) {
562+ if ( jqEnabled && ( isSurgeiOS || isStashiOS ) ) {
563563 const jqPath = value . match ( / j q - p a t h = " ( .+ ?) " / ) ?. [ 1 ]
564564 if ( jqPath ) {
565565 if ( / ^ h t t p s ? : \/ \/ / . test ( jqPath ) ) {
@@ -610,7 +610,7 @@ if (binaryInfo != null && binaryInfo.length > 0) {
610610 const jsptn = regex
611611 let args = [ [ action , newSuffixArray ] ]
612612
613- if ( jqEnabled && isSurgeiOS ) {
613+ if ( jqEnabled && ( isSurgeiOS || isStashiOS ) ) {
614614 if ( action === 'json-add' ) {
615615 newSuffixArray . forEach ( item => {
616616 const paths = parseJsonPath ( item [ 0 ] )
@@ -1199,6 +1199,8 @@ if (binaryInfo != null && binaryInfo.length > 0) {
11991199 rules . push ( mark + noteK + ruletype + ',' + rulevalue + ',' + rulepolicy + rulenore + rulesni + rulepm )
12001200 } else if ( / ^ (?: a n d | o r | n o t ) $ / i. test ( ruletype ) && ! isStashiOS ) {
12011201 rules . push ( ori )
1202+ } else if ( / ^ (?: a n d | o r | n o t ) $ / i. test ( ruletype ) && isStashiOS ) {
1203+ rules . push ( mark + noteK2 + '- ' + ori )
12021204 } else if ( / (?: ^ d o m a i n $ | d o m a i n - s u f f i x | d o m a i n - k e y w o r d | i p - | d e ? s t - p o r t ) / i. test ( ruletype ) && isStashiOS ) {
12031205 rules . push ( mark + noteK2 + '- ' + ruletype + ',' + rulevalue + ',' + rulepolicy + rulenore )
12041206 } else if ( / s r c - p o r t / i. test ( ruletype ) && ( isSurgeiOS || isLooniOS ) ) {
0 commit comments