Skip to content

Commit

Permalink
Merge pull request #133 from iovxw/patch-1
Browse files Browse the repository at this point in the history
fix regular expression syntax error
  • Loading branch information
UshakovVasilii authored May 23, 2019
2 parents e559cb3 + a006cea commit c55abb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion freon@UshakovVasilii_Github.yahoo.com/sensorsUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit c55abb7

Please sign in to comment.