[File] [PATCH] JavaScript source
Christos Zoulas
christos at zoulas.com
Thu Jan 12 00:02:28 UTC 2023
Committed, thanks!
christos
> On Jan 11, 2023, at 5:16 AM, FC Stegerman <flx at obfusk.net> wrote:
>
> Hi!
>
> I've attached a patch for detecting JavaScript files based on common
> code patterns that are hopefully sufficiently unique; I've tried to
> limit false positives as much as possible, but I can't guarantee I've
> avoided e.g. false positives for programming languages I'm unfamiliar
> with (though I'm familiar with more than 20, so that helps).
>
> It also fixes detection of Node.js scripts as binary instead of text.
>
> See [1] for my test results.
>
> - FC
>
> [1] https://gist.github.com/obfusk/8117be542a56268d80e1ee986ff46756
> <js.patch>--
> File mailing list
> File at astron.com
> https://mailman.astron.com/mailman/listinfo/file
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 235 bytes
Desc: Message signed with OpenPGP
URL: <https://mailman.astron.com/pipermail/file/attachments/20230111/1e5e8b3c/attachment.asc>
More information about the File
mailing list