Skip to content

fix(530): add word-boundary check to @for and @if directive detection#549

Open
edward3h wants to merge 2 commits into
casid:mainfrom
edward3h:fix/530-at-for-in-url
Open

fix(530): add word-boundary check to @for and @if directive detection#549
edward3h wants to merge 2 commits into
casid:mainfrom
edward3h:fix/530-at-for-in-url

Conversation

@edward3h
Copy link
Copy Markdown
Collaborator

URLs containing @for or @if (e.g. @FortAwesome) were incorrectly parsed as JTE directives because regionMatches() matched the keyword without checking the following character. Require the next char to be '(' or whitespace, consistent with how @else already guards against @elseif.

URLs containing @for or @if (e.g. @FortAwesome) were incorrectly parsed
as JTE directives because regionMatches() matched the keyword without
checking the following character. Require the next char to be '(' or
whitespace, consistent with how @else already guards against @elseif.
@edward3h edward3h linked an issue Apr 25, 2026 that may be closed by this pull request
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.17%. Comparing base (1694404) to head (942490f).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #549   +/-   ##
=========================================
  Coverage     91.17%   91.17%           
- Complexity     1223     1227    +4     
=========================================
  Files            76       76           
  Lines          3185     3185           
  Branches        489      489           
=========================================
  Hits           2904     2904           
  Misses          173      173           
  Partials        108      108           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

inline @for causes compilation error

1 participant