From a006cea782f25595e91dcf5853f97535983ac4db Mon Sep 17 00:00:00 2001 From: iovxw Date: Thu, 23 May 2019 18:05:28 +0800 Subject: [PATCH] fix regular expression syntax error --- freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js b/freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js index eb46617..50ff2bc 100644 --- a/freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js +++ b/freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js @@ -49,7 +49,7 @@ var SensorsUtil = class extends CommandLineUtil.CommandLineUtil { // https://github.com/UshakovVasilii/gnome-shell-extension-freon/issues/114#issuecomment-491613545 let lineRemoved = this._output.filter(l => l.trim() !== ',').join('\n'); let errorRemoved = lineRemoved.replace(/ERROR.*Can't read/, ""); - errorRemoved = errorRemoved.replace(/ERROR.*I/O error/, ""); + errorRemoved = errorRemoved.replace(/ERROR.*I\/O error/, ""); data = JSON.parse(errorRemoved); } catch (e) { global.log(e.toString());