Skip to content

Commit

Permalink
fix: Fix compatibility issue with replaceAll for older Node.js versio…
Browse files Browse the repository at this point in the history
…ns Update grafanadash.cjs
  • Loading branch information
mdqst authored Dec 13, 2024
1 parent fdcff5e commit 088ba53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/hubble/scripts/grafanadash.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = function grafana() {
lineNumber++;

// Check if the current line contains the undesired datasource entry
if (line.includes('"datasource":') && !line.replaceAll(" ", "").includes('"datasource":"Graphite"')) {
if (line.includes('"datasource":') && !line.replace(/ /g, "").includes('"datasource":"Graphite"')) {
return lineNumber;
}
}
Expand Down

0 comments on commit 088ba53

Please sign in to comment.