kopia lustrzana https://github.com/manuelkasper/sotlas-frontend
Fix allow ?? region code
rodzic
fa54e7f3f3
commit
ba04fdc2c9
|
@ -152,7 +152,7 @@ export default {
|
||||||
handler () {
|
handler () {
|
||||||
if (this.summitCode) {
|
if (this.summitCode) {
|
||||||
// Shorthand input
|
// 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)
|
let matches = this.summitCode.match(summitRegex)
|
||||||
if (matches) {
|
if (matches) {
|
||||||
this.summitCode = (matches[1] + '/' + matches[2] + '-' + matches[3]).toUpperCase()
|
this.summitCode = (matches[1] + '/' + matches[2] + '-' + matches[3]).toUpperCase()
|
||||||
|
|
Ładowanie…
Reference in New Issue