diff options
author | JJ | 2024-07-19 23:10:08 +0000 |
---|---|---|
committer | JJ | 2024-07-19 23:10:08 +0000 |
commit | c7f35f40cfacdba6282cfadcd0a366a4331bb641 (patch) | |
tree | fc28449c745e9dda1fe89394166a5ecde386818e /frontend | |
parent | 91664d4859250c3f48aba988a871ef67e467d519 (diff) |
allow short flag regexes
Diffstat (limited to 'frontend')
-rw-r--r-- | frontend/src/components/pages/ConfigurationPage.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/components/pages/ConfigurationPage.js b/frontend/src/components/pages/ConfigurationPage.js index c8646fb..7119db7 100644 --- a/frontend/src/components/pages/ConfigurationPage.js +++ b/frontend/src/components/pages/ConfigurationPage.js @@ -64,8 +64,8 @@ class ConfigurationPage extends Component { this.setState({serverAddressError: "invalid ip_address"}); valid = false; } - if (settings.config["flag_regex"].length < 8) { - this.setState({flagRegexError: "flag_regex.length < 8"}); + if (settings.config["flag_regex"].length == 0) { + this.setState({flagRegexError: "flag_regex cannot be empty"}); valid = false; } |