mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
chore: update hostname validation for web platform
This commit is contained in:
1 parent
d2a1c0ee89
commit
bc1d96b7d3
1 file changed
+2
-2
@@ -44,7 +44,7 @@
|
||||
AngularFrameworkIcon,
|
||||
JavascriptFrameworkIcon
|
||||
} from './components/index';
|
||||
import { hostnameRegex } from '$lib/helpers/string';
|
||||
import { extendedHostnameRegex } from '$lib/helpers/string';
|
||||
|
||||
export let key;
|
||||
|
||||
@@ -143,7 +143,7 @@ ${prefix}APPWRITE_ENDPOINT = "${sdk.forProject(page.params.region, page.params.p
|
||||
$: selectedFrameworkIcon = selectedFramework ? selectedFramework.icon : NoFrameworkIcon;
|
||||
|
||||
async function createWebPlatform() {
|
||||
hostnameError = hostname !== '' ? !new RegExp(hostnameRegex).test(hostname) : null;
|
||||
hostnameError = hostname !== '' ? !new RegExp(extendedHostnameRegex).test(hostname) : null;
|
||||
|
||||
if (hostnameError) {
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user