Skip to content

Commit

Permalink
fix(notifications): macro warning notification accidental appearing
Browse files Browse the repository at this point in the history
  • Loading branch information
stdword committed Nov 16, 2023
1 parent 7734351 commit e06179c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/logic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ async (
const toReplace = rawCode.toPattern()
const newContent = oldContent.replace(toReplace, toInsert)
if (newContent === oldContent) {
showInsideMacroNotification()
if (oldContent.search(/\{\{\s*\w+\s*.*?\}\}/g) !== -1)
showInsideMacroNotification()

console.warn(p`Cannot find renderer macro to replace it`, {
uuid,
Expand Down

0 comments on commit e06179c

Please sign in to comment.