Skip to content
Snippets Groups Projects
Unverified Commit 0e0b50cc authored by Ariya Hidayat's avatar Ariya Hidayat Committed by GitHub
Browse files

Do not escape closing curly braces in a regular expression (#14202)

parent 5f8d30e2
Branches
Tags
No related merge requests found
......@@ -360,7 +360,7 @@ export default class NativeQuery extends AtomicQuery {
for (const tag of tagsBySnippetId[snippet.id] || []) {
if (tag["snippet-name"] !== snippet.name) {
queryText = queryText.replace(
new RegExp(`\{\{\\s*${tag.name}\\s*\}\}`, "g"),
new RegExp(`{{\\s*${tag.name}\\s*}}`, "g"),
`{{snippet: ${snippet.name}}}`,
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment