chore: update hostname validation for web platform

This commit is contained in:
Chirag Aggarwal committed 2025-07-05 08:14:20 +05:30
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;