fix regex
This commit is contained in:
parent
36926d4346
commit
0850e0d310
@ -41,7 +41,7 @@ export class EventBuilder {
|
|||||||
processContent() {
|
processContent() {
|
||||||
if (this.#content) {
|
if (this.#content) {
|
||||||
this.#content = 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));
|
.replace(HashtagRegex, m => this.#replaceHashtag(m));
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user