You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.
Hello, I noticed that neither the URL or the IP address regex match a combination of IP + port if no http/s scheme is provided.
I'd like to be able to click on simple IP:PORT links like 127.0.0.1:8080.
Edit the IP address regex to something like \b((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)(:\d{1,4})?:
Edit the URL regex to match addresses without scheme: ((https?:\/\/)|(www.))?(?:([a-zA-Z]+)|(\d+\.\d+.\d+.\d+))(:\d{4})? (inspired by https://stackoverflow.com/a/53519729/11819893)
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello, I noticed that neither the URL or the IP address regex match a combination of IP + port if no http/s scheme is provided.
I'd like to be able to click on simple
IP:PORT
links like127.0.0.1:8080
.This is the result with the current URL regex:
![image](https://user-images.githubusercontent.com/32563450/187383205-882f8994-7307-489a-a6c7-616ad991574f.png)
Here's the IP address regex:
![image](https://user-images.githubusercontent.com/32563450/187383164-c3cdc8be-1a93-4412-8aa9-1aa96d6fc2ef.png)
And here's what we could do to make it work:
Edit the IP address regex to something like
![image](https://user-images.githubusercontent.com/32563450/187383817-5cfed545-60d2-410c-a7d3-4e751d9f1aa2.png)
\b((2[0-4]\d|25[0-5]|[01]?\d\d?)\.){3}(2[0-4]\d|25[0-5]|[01]?\d\d?)(:\d{1,4})?
:Edit the URL regex to match addresses without scheme:
![image](https://user-images.githubusercontent.com/32563450/187383936-29f44531-ceac-499c-b19a-6f8a975cca43.png)
((https?:\/\/)|(www.))?(?:([a-zA-Z]+)|(\d+\.\d+.\d+.\d+))(:\d{4})?
(inspired by https://stackoverflow.com/a/53519729/11819893)The text was updated successfully, but these errors were encountered: