Skip to content

Commit

Permalink
fix detections error
Browse files Browse the repository at this point in the history
  • Loading branch information
DerGoogler committed Sep 3, 2024
1 parent 9ea8132 commit 7130dc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/native/Shell.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,23 +184,23 @@ class Shell extends Native<NativeShellV2> {
*/
public static isKernelSU(): boolean {
// `proc.exist()` is always `false` on browsers
return this._mountDetect(/(KSU|KernelSU)/);
return this._mountDetect(/\b(KSU|KernelSU)\b/i);
}

/**
* Determine if MMRL runs with Magisk
*/
public static isMagiskSU(): boolean {
// `proc.exist()` is always `false` on browsers
return this._mountDetect(/(magisk|core\/mirror|core\/img)/);
return this._mountDetect(/\b(magisk|core\/mirror|core\/img)\b/i);
}

/**
* Determine if MMRL runs with APatch
*/
public static isAPatchSU(): boolean {
// `proc.exist()` is always `false` on browsers
return this._mountDetect(/(APD|APatch)/);
return this._mountDetect(/\b(APD|APatch)\b/i);
}

/**
Expand Down

0 comments on commit 7130dc9

Please sign in to comment.