Skip to content

Commit

Permalink
fix: make this regex non greedy so that only abe tags are catched
Browse files Browse the repository at this point in the history
  • Loading branch information
gregorybesson committed Apr 11, 2021
1 parent 8a0d78c commit 0e7bcc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cli/cms/templates/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ export function getAbePrecontribFromTemplates(templatesList) {
file.template
)
templateText = templateText.replace(
/(?!.*?tab=['|"]slug)(\{\{abe.+.*\}\})/gms,
/(?!.*?tab=['|"]slug)(\{\{abe(.*?)\}\})/gms,
''
)
templateText = templateText.replace(
Expand Down

0 comments on commit 0e7bcc0

Please sign in to comment.