Align Mnemazine agent workflow and postrun reports
This commit is contained in:
@@ -39,6 +39,9 @@ function actionOf(text) {
|
||||
function linksOf(text) {
|
||||
return [...new Set(String(text).match(/\bhttps?:\/\/[^\s)]+/g) || [])]
|
||||
.map(url => url.replace(/[.,;]+$/, ''))
|
||||
.filter(url => {
|
||||
try { new URL(url); return true } catch { return false }
|
||||
})
|
||||
.slice(0, 4)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user