fix(network): correct regex escaping for Wi-Fi signal strength retrieval (#3056)

This commit is contained in:
Minh
2026-03-02 18:04:27 +01:00
committed by GitHub
@@ -233,7 +233,7 @@ Singleton {
Process { Process {
id: updateNetworkStrength id: updateNetworkStrength
running: true running: true
command: ["sh", "-c", "nmcli -f IN-USE,SIGNAL,SSID device wifi | awk '/^\*/{if (NR!=1) {print $2}}'"] command: ["sh", "-c", "nmcli -f IN-USE,SIGNAL,SSID device wifi | awk '/^\\*/{if (NR!=1) {print $2}}'"]
stdout: SplitParser { stdout: SplitParser {
onRead: data => { onRead: data => {
root.networkStrength = parseInt(data); root.networkStrength = parseInt(data);