Fix allow ?? region code

buefy-0.9
Manuel Kasper 2023-06-11 20:00:23 +02:00
rodzic fa54e7f3f3
commit ba04fdc2c9
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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()