Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a library that maintains a comprehensive list of valid TLDs in Editor Sources Validation #1152

Open
pepermao opened this issue Apr 20, 2024 · 0 comments
Labels

Comments

@pepermao
Copy link
Collaborator

pepermao commented Apr 20, 2024

Where

const validateFloatingLink = useCallback(() => {
        // TODO: use a library or service that maintains a comprehensive list of valid TLDs
        if (!URL_PATTERN.test(href)) {
            throw new Error(t("sourceForm:errorMessageValidURL"));
        }
    }, [href, t]);
@pepermao pepermao added the tech label Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant