Console errors on Batch Changes apply
Created by: malomarrec
Latest master pull
Steps to reproduce:
- Pull latest master branch (39eed9d359137021c4fa720ad1bd0199ec2a678c)
- Run
enterprise/dev/start.sh - Setup tokens, etc
- Set rolloutWIndow (from the docs example)
"batchChanges.rolloutWindows": [
{
"rate": "unlimited"
},
{
"rate": "3/minute",
"days": [
"monday",
"tuesday",
"wednesday",
"thursday",
"friday"
],
"start": "08:00",
"end": "16:00"
},
],
- Create a Batch Change
Expected behavior:
Change is schedule and ran within the next few minutes, given no other batch change is created.
Actual behavior:
Crash output (console)
Uncaught Error: Invalid regular expression: /^(?i)(unlimited|[0-9]+/(sec|secs|second|seconds|min|mins|minute|minutes|hr|hrs|hour|hours))$/: Invalid group
SyntaxError: Invalid regular expression: /^(?i)(unlimited|[0-9]+/(sec|secs|second|seconds|min|mins|minute|minutes|hr|hrs|hour|hours))$/: Invalid group
at new RegExp (<anonymous>)
at _validateStringNode (42:907)
at validate (42:541)
at testAlternatives (42:632)
at _validateNode (42:695)
at validate (42:554)
at _validateObjectNode (42:1154)
at validate (42:531)
at _validateArrayNode (42:1019)
at validate (42:536)
at eval (errors.js?9c65:12)