You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 798c571
Browse filesBrowse the repository at this point in the historyBrowse files
fix: find comments after a backtick in a JS regex literal (#53)
Copy the fixed scripts/check-comment-quality.mjs and its tests from
fallow-rs/fallow (fallow-rs/fallow#4230).
The check treated every backtick in a JavaScript file as the start of a
template literal. A backtick inside a regex literal, a quoted string, or
a comment opened a template that never closed, and the check skipped
every comment after that line. The opener scan now skips these
constructs.
Signed-off-by: Bart Waardenburg <bart@waardenburg.dev>
0 commit comments