counters: fix numbers over 9 not being accepted in conditions
This commit is contained in:
parent
87aeaf084f
commit
e549303b1d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue