3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-03-15 05:41:51 +00:00

counters: fix numbers over 9 not being accepted in conditions

This commit is contained in:
Dragory 2021-02-13 21:31:02 +02:00
parent 87aeaf084f
commit e549303b1d
No known key found for this signature in database
GPG key ID: 5F387BA66DF8AAC1

View file

@ -8,7 +8,7 @@ import moment from "moment-timezone";
import { DAYS, DBDateFormat, HOURS, MINUTES } from "../utils";
import { connection } from "./db";
const comparisonStringRegex = new RegExp(`^(${TRIGGER_COMPARISON_OPS.join("|")})([1-9]\d*)$`);
const comparisonStringRegex = new RegExp(`^(${TRIGGER_COMPARISON_OPS.join("|")})([1-9]\\d*)$`);
/**
* @return Parsed comparison op and value, or null if the comparison string was invalid