3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 16:25:03 +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 a23ebc6e8e
commit 8a891e31f1

View file

@ -8,7 +8,7 @@ import moment from "moment-timezone";
import { DAYS, DBDateFormat, HOURS, MINUTES } from "../utils"; import { DAYS, DBDateFormat, HOURS, MINUTES } from "../utils";
import { connection } from "./db"; 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 * @return Parsed comparison op and value, or null if the comparison string was invalid