mathematica: fix incorrect matchesDoc with #343491 (#346696)

This commit is contained in:
Fabián Heredia Montiel 2024-10-13 13:08:59 -06:00 committed by GitHub
commit 9c57494b9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -51,10 +51,7 @@ let versions = callPackage ./versions.nix { };
sublist = l: lib.sublist 0 n l;
in lib.compareLists lib.compare (sublist as) (sublist bs) == 0;
matchesDoc = v:
builtins.match (if webdoc
then ".*[0-9]_LIN(UX)?.sh"
else ".*_B[Nn][Dd][Ll].sh") v.src.name != null;
matchesDoc = v: (builtins.match ".*[0-9]_LIN(UX)?.sh" v.src.name != null) == webdoc;
in