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

Incorrect URL Validator behavior #1134

Closed
RuneMason1 opened this issue Jan 8, 2025 · 1 comment
Closed

Incorrect URL Validator behavior #1134

RuneMason1 opened this issue Jan 8, 2025 · 1 comment

Comments

@RuneMason1
Copy link

Describe the feature you'd like to request

Trying to use an Overlay widget from MixItUp, and it's failing, please make it so the following url format is valid?

http://localhost:8111/overlay/e10e3a4e-9b85-4606-946c-8ff9f96bfe28

The box says "This is not a valid URL, it should look like this: http(s)://(www.)twitch.tv"

@Enubia
Copy link
Owner

Enubia commented Jan 9, 2025

I never thought about loading a locally hosted layout and that's why my regex doesn't match localhost

You can edit the app.asar file and search for this string (should be located in your ghost chat installation folder, contents/resources/app.asar)

/^https?:\/\/(?:www\.)?[-\w@:%.+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*$/

replace this with an empty string and it should work

@Enubia Enubia closed this as completed Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants