mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-19 10:46:48 +02:00
lint fix
This commit is contained in:
parent
e61ba524d7
commit
cfde1a7ed2
1 changed files with 2 additions and 2 deletions
|
@ -66,8 +66,8 @@ class Prometheus {
|
||||||
sanitizeTags(tags) {
|
sanitizeTags(tags) {
|
||||||
return tags.reduce((sanitizedTags, tag) => {
|
return tags.reduce((sanitizedTags, tag) => {
|
||||||
let tagText = tag.name;
|
let tagText = tag.name;
|
||||||
tagText = tagText.replace(/[^a-zA-Z0-9_]/g, "")
|
tagText = tagText.replace(/[^a-zA-Z0-9_]/g, "");
|
||||||
tagText = tagText.replace(/^[^a-zA-Z_]+/, "")
|
tagText = tagText.replace(/^[^a-zA-Z_]+/, "");
|
||||||
|
|
||||||
if (tagText !== "") {
|
if (tagText !== "") {
|
||||||
sanitizedTags.push(tagText);
|
sanitizedTags.push(tagText);
|
||||||
|
|
Loading…
Add table
Reference in a new issue