mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-29 18:37:58 +03:00
fix: slightly better regex
This commit is contained in:
@@ -29,7 +29,7 @@ export default function UserPage({ reqUser }: Props) {
|
||||
}
|
||||
|
||||
function InferLinks(aboutMe: string) {
|
||||
return aboutMe.replace(/(https?:\/\/[^\s]+)(\s)/gu, "[$1]($1)$2");
|
||||
return aboutMe.replace(/(https?:\/\/[a-zA-Z0-9-._~?&=]+)(\s*)/gu, "[$1]($1)$2");
|
||||
}
|
||||
|
||||
function AboutMeCard({ reqUser }: Props) {
|
||||
|
||||
Reference in New Issue
Block a user