From 6ae33a35c18de2d23227e66f92d8ce1a6395ed21 Mon Sep 17 00:00:00 2001 From: Son Nguyen Kim Date: Tue, 3 Aug 2021 16:10:48 +0200 Subject: [PATCH] support dot in alias prefix --- src/popup/components/Main.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/popup/components/Main.vue b/src/popup/components/Main.vue index 4b45120..62b6ac6 100644 --- a/src/popup/components/Main.vue +++ b/src/popup/components/Main.vue @@ -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 }