From ba04fdc2c9f2b6a036fbf4256f7aebfe032541ff Mon Sep 17 00:00:00 2001 From: Manuel Kasper Date: Sun, 11 Jun 2023 20:00:23 +0200 Subject: [PATCH] Fix allow ?? region code --- src/components/EditAlert.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EditAlert.vue b/src/components/EditAlert.vue index cc8a2e8..4656a03 100644 --- a/src/components/EditAlert.vue +++ b/src/components/EditAlert.vue @@ -152,7 +152,7 @@ export default { handler () { if (this.summitCode) { // Shorthand input - let summitRegex = /^([A-Z0-9]{1,8})[/ ]([A-Z]{2})[- ]?([0-9]{3}|xxx|\?\?\?)$/i + let summitRegex = /^([A-Z0-9]{1,8})[/ ]([A-Z]{2}|\?\?)[- ]?([0-9]{3}|xxx|\?\?\?)$/i let matches = this.summitCode.match(summitRegex) if (matches) { this.summitCode = (matches[1] + '/' + matches[2] + '-' + matches[3]).toUpperCase()