Commit 43a6eb04 authored by Ben Hayward's avatar Ben Hayward

updated 3rd match usage in returned string

1 merge request!415[Sprint/InterestingIguana](BUG) Fix period char username fix #1481
Pipeline #69285546 canceled with stages
in 1 minute and 26 seconds
......@@ -41,7 +41,7 @@ export class TagsPipe implements PipeTransform {
at: {
rule: /(^|\W|\s)@([a-z0-9_\-\.]+[a-z0-9_])/gmi,
replace: (m) => {
return `${m.match[1]}<a class="tag" href="/${m.match[2]}" target="_blank">@${m.match[2]}</a>${m.match[3]}`;
return `${m.match[1]}<a class="tag" href="/${m.match[2]}" target="_blank">@${m.match[2]}</a>`;
}
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment