Skip to content

Commit

Permalink
update regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jmmaloney4 committed Feb 26, 2023
1 parent e5cb300 commit a80663e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/findLatexPackages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
lineToPackageName = (line:
let
exact = builtins.match ''^\\usepackage\{([a-zA-Z0-9]*)\}$'' line;
comment = builtins.match ''^\\usepackage.*\{([a-zA-Z0-9]*)\} \% CTAN: ([a-zA-Z0-9]*)$'' line;
comment = builtins.match ''^\\usepackage.*\{([a-zA-Z0-9]*)\} \% CTAN\: ([a-zA-Z0-9]*)$'' line;
in
if (comment != null) then (elemAt comment 1) else
if (exact != null) then (elemAt exact 0) else
Expand Down

0 comments on commit a80663e

Please sign in to comment.