Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

uptimekuma: Fix value regex to handle decimals

armageddon4216d75bebe849c
diff --git a/src/components/Widgets/UptimeKuma.vue b/src/components/Widgets/UptimeKuma.vue
index 1ba5ecbe..a6995cc6 100644
--- a/src/components/Widgets/UptimeKuma.vue
+++ b/src/components/Widgets/UptimeKuma.vue
@@ -144,7 +144,7 @@ export default {
return copy;
},
getRowValue(row) {
- return this.getValueWithRegex(row, /\b\d+\b$/);
+ return this.getValueWithRegex(row, /\b(\d+)(\.\d+)*\b$/);
},
getRowMonitorName(row) {
return this.getValueWithRegex(row, /monitor_name="([^"]+)"/);