fix regex

This commit is contained in:
Kieran 2023-04-14 16:09:06 +01:00
parent 36926d4346
commit 0850e0d310
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ export class EventBuilder {
processContent() {
if (this.#content) {
this.#content = this.#content
.replace(/@n[pub|profile|event|ote|addr|]1[acdefghjklmnpqrstuvwxyz023456789]+/g, m => this.#replaceMention(m))
.replace(/@n(pub|profile|event|ote|addr|)1[acdefghjklmnpqrstuvwxyz023456789]+/g, m => this.#replaceMention(m))
.replace(HashtagRegex, m => this.#replaceHashtag(m));
}
return this;