From c7f35f40cfacdba6282cfadcd0a366a4331bb641 Mon Sep 17 00:00:00 2001 From: JJ Date: Fri, 19 Jul 2024 16:10:08 -0700 Subject: allow short flag regexes --- frontend/src/components/pages/ConfigurationPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'frontend/src/components') 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; } -- cgit v1.2.3-70-g09d2