<div dir="ltr"><div><font face="arial, sans-serif">Hi,</font></div><div><font face="arial, sans-serif"><span style="color:rgb(0,0,0);white-space:pre-wrap">this regression (</span><a href="https://bugzilla.redhat.com/show_bug.cgi?id=2029975">https://bugzilla.redhat.com/show_bug.cgi?id=2029975</a><span style="color:rgb(0,0,0);white-space:pre-wrap">) was introduced with file-5.41</span></font></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif"><br></font></span></div><div><font face="arial, sans-serif"><span style="color:rgb(0,0,0);white-space:pre-wrap">The problematic commit & line is </span><a href="https://github.com/file/file/commit/c07b2a18eb1c5d3854e3ecc72319a2336e361d9e#diff-85466710385fb2ac02303e18020a937c563abbea6d4050ba3aff96cf6c8e6866R100" style="white-space:pre-wrap;color:rgb(0,136,206);text-decoration-line:none;outline:none">https://github.com/file/file/commit/c07b2a18eb1c5d3854e3ecc72319a2336e361d9e#diff-85466710385fb2ac02303e18020a937c563abbea6d4050ba3aff96cf6c8e6866R10</a> which overwhelms the <a href="https://github.com/file/file/blob/master/magic/Magdir/javascript">https://github.com/file/file/blob/master/magic/Magdir/javascript</a> patterns.</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif"><span style="color:rgb(0,0,0);white-space:pre-wrap">The powerful </span><span style="color:rgb(0,0,0);white-space:pre-wrap">(with huge strength) </span><span style="color:rgb(0,0,0);white-space:pre-wrap">"wild-card match for interpreters" pattern </span>is the cause<span style="color:rgb(0,0,0);white-space:pre-wrap"> of the regression. After running file --</span>checking-printout<span style="color:rgb(0,0,0);white-space:pre-wrap"> --list:</span></font></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">100: > 0 string/wt,=#! ,"a"]                                                                           <-- used detection pattern</font></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">101: >> 1 string,x,"%s script text executable"]</font></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">...</font></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif">16: > 0 search/1,=#!/usr/bin/env nodejs,"Node.js script text executable"]   <-- expected detection pattern</font></span></div><div><span style="color:rgb(0,0,0);white-space:pre-wrap"><font face="arial, sans-serif"><br></font></span></div><div><font face="arial, sans-serif"><span style="color:rgb(0,0,0);white-space:pre-wrap">I want to ask how to fix this - </span>whether to increase the strength of the JavaScript detection patterns or to remove the "wild-card match for interpreters" pattern...</font></div><div><font face="arial, sans-serif"><br></font></div><div><font face="arial, sans-serif">regards,</font></div><div><font face="arial, sans-serif">vincent mihalkovic</font></div></div>