linkfy_text icon indicating copy to clipboard operation
linkfy_text copied to clipboard

doesn't handle localhost urls or ip address urls

Open sgehrman opened this issue 10 months ago • 0 comments

new regex I got asking an AI bot:

// "http://localhost:22/icon" // "http://192.168.1.254/cgi-bin/apphosting.ha"

String urlRegExp = r'(https?://)?(www.)?([a-zA-Z0-9@:%.+~#=]{2,256}.[a-z]{2,6}|localhost|\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})\b([-a-zA-Z0-9@:%+.~#?&//=]*)';

sgehrman avatar Feb 11 '25 00:02 sgehrman