aboutsummaryrefslogtreecommitdiff
path: root/frontend/src
diff options
context:
space:
mode:
authorJJ2024-07-19 23:10:08 +0000
committerJJ2024-07-19 23:10:08 +0000
commitc7f35f40cfacdba6282cfadcd0a366a4331bb641 (patch)
treefc28449c745e9dda1fe89394166a5ecde386818e /frontend/src
parent91664d4859250c3f48aba988a871ef67e467d519 (diff)
allow short flag regexes
Diffstat (limited to 'frontend/src')
-rw-r--r--frontend/src/components/pages/ConfigurationPage.js4
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;
}