tags: fix config-defined tags not accepting arguments
This commit is contained in:
parent
b4e034e3d8
commit
5dca6c6cb0
1 changed files with 1 additions and 1 deletions
|
@ -408,7 +408,7 @@ export class TagsPlugin extends ZeppelinPlugin<TConfigSchema> {
|
|||
const withoutPrefix = msg.data.content.slice(prefix.length);
|
||||
|
||||
for (const [tagName, tagBody] of Object.entries(category.tags)) {
|
||||
const regex = new RegExp(`^${escapeStringRegexp(tagName)}(?:\s|$)`);
|
||||
const regex = new RegExp(`^${escapeStringRegexp(tagName)}(?:\\s|$)`);
|
||||
if (regex.test(withoutPrefix)) {
|
||||
renderedTag = await this.renderSafeTagFromMessage(
|
||||
msg.data.content,
|
||||
|
|
Loading…
Add table
Reference in a new issue