diff --git a/src/views/struct/value-to-html.ts b/src/views/struct/value-to-html.ts
index ca8c35e..05e354c 100644
--- a/src/views/struct/value-to-html.ts
+++ b/src/views/struct/value-to-html.ts
@@ -3,7 +3,7 @@ import { hasOwn, objectToString } from '../../core/utils/object-utils.js';
import { isArray, isError } from '../../core/utils/is-type.js';
import { matchAll } from '../../core/utils/pattern.js';
-const urlRx = /^(?:https?:)?\/\/(?:[a-z0-9\-]+(?:\.[a-z0-9\-]+)+|\d+(?:\.\d+){3})(?:\:\d+)?(?:\/\S*?)?$/i;
+const urlRx = /^(?:https?:)?\/\/(?:localhost|[a-z0-9\-]+(?:\.[a-z0-9\-]+)+|\d+(?:\.\d+){3})(?:\:\d+)?(?:\/\S*?)?$/i;
function token(type: string, str: string | number) {
return `${str}`;