Skip to content

Conversation

@gucci-on-fleek
Copy link

Right now, the warning RegExp only matches warnings beginning with Package, Class, or LaTeX. However, using only core LaTeX kernel commands (without any packages), you can produce warnings starting with Module or LaTeX3:

\documentclass{article}

\directlua{luatexbase.module_warning("PACKAGE-NAME", "TEXT")}

\ExplSyntaxOn
    \regex_new:N \l_my_regex
    \regex_set:Nn \l_my_regex { [1-] }
\ExplSyntaxOff

\begin{document}
    Hello!
\end{document}
Module PACKAGE-NAME Warning: TEXT on input line 3

LaTeX3 Warning: Invalid end-point for range '1-\]' in character class.

Reference for luatexbase.module_warning

Reference for LaTeX3 Warning

Fixes #970.

@codecov
Copy link

codecov bot commented May 21, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (fc95268) 34.62% compared to head (0a33053) 34.54%.
Report is 224 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #971      +/-   ##
==========================================
- Coverage   34.62%   34.54%   -0.09%     
==========================================
  Files         136      136              
  Lines       17041    17138      +97     
==========================================
+ Hits         5901     5920      +19     
- Misses      11140    11218      +78     

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

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.

Log: some warnings are not counted and filtered

1 participant