support dot in alias prefix

This commit is contained in:
Son Nguyen Kim
2021-08-03 16:10:48 +02:00
parent b449cfc588
commit 6ae33a35c1
+2 -2
View File
@@ -218,7 +218,7 @@ import Navigation from "../Navigation";
import AliasMoreOptions from "./AliasMoreOptions";
import { callAPI, API_ROUTE, API_ON_ERR } from "../APIService";
const ALIAS_PREFIX_REGEX =/^[0-9a-z-_]+$/
const ALIAS_PREFIX_REGEX =/^[0-9a-z-_.]+$/
export default {
components: {
@@ -362,7 +362,7 @@ export default {
// check aliasPrefix
this.aliasPrefixError = ""
if (this.aliasPrefix.match(ALIAS_PREFIX_REGEX) === null){
this.aliasPrefixError = "Only letter, number, dash (-), underscore (_) can be used in alias prefix."
this.aliasPrefixError = "Only lowercase letters, dots, numbers, dashes (-) and underscores (_) are currently supported."
return
}