|
|
@@ -623,7 +623,7 @@ export class TaskService implements OnModuleInit {
|
|
|
}
|
|
|
|
|
|
refineContent(content: string) {
|
|
|
- const regex = /(?:(?:https?|ftp):\/\/)?[\w/\-?=%.]+\.[\w/\-&?=%.]+/g
|
|
|
+ const regex = /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/g
|
|
|
const urls = []
|
|
|
let match
|
|
|
while ((match = regex.exec(content)) !== null) {
|