fix: regex url with query

This commit is contained in:
minhtritc97 2025-09-03 10:45:51 +07:00 committed by JohnE
parent cb709ec7cd
commit ea9faf279b
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import 'package:linkfy_text/src/enum.dart';
// url regex that accept https, http, www
String urlRegExp =
r'[-a-zA-Z0-9@:%_\+.~#?&//=]{2,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&//=]*)?';
r'[(http(s)?):\/\/(www\.)?a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)';
String hashtagRegExp = r'#[a-zA-Z\u00C0-\u01B4\w_\u1EA0-\u1EF9!$%^&]{1,}(?=\s|$)';