3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-25 10:25:01 +00:00

fix regex

This commit is contained in:
Rstar284 2022-05-20 17:53:23 +04:00
parent 412d2995f9
commit ca30b74bf8

View file

@ -84,7 +84,7 @@ export async function matchAndRenderTagFromString(
return null;
}
const tagNameMatch = str.slice(tagPrefix.length).match(/^[a-z0-9_-]*/);
const tagNameMatch = str.slice(tagPrefix.length).match(/^\S+/);
if (tagNameMatch == null) {
return null;
}