mirror of
https://github.com/nix-community/emacs-overlay.git
synced 2025-12-06 02:40:25 -08:00
Match more liberally in Package-Requires lists
This commit is contained in:
parent
8439afbe1e
commit
1b7520aab8
1 changed files with 2 additions and 2 deletions
|
|
@ -12,11 +12,11 @@ let
|
||||||
requires =
|
requires =
|
||||||
lib.concatMapStrings
|
lib.concatMapStrings
|
||||||
(line:
|
(line:
|
||||||
let match = builtins.match "^;;;* *[pP]ackage-[rR]equires *: *\\((.*)\\)" line;
|
let match = builtins.match ";;;* *[pP]ackage-[rR]equires *: *\\((.*)\\) *" line;
|
||||||
in if match == null then "" else builtins.head match)
|
in if match == null then "" else builtins.head match)
|
||||||
lines;
|
lines;
|
||||||
parseReqList = s:
|
parseReqList = s:
|
||||||
let matchAndRest = builtins.match " *\\(? *([^ \"\\)]+)( +\"[^\"]+\" *\\))?(.*)" s;
|
let matchAndRest = builtins.match " *\\(? *([^ \"\\)]+)( +\"[^\"]+\" *\\)| *\\))?(.*)" s;
|
||||||
in
|
in
|
||||||
if isStrEmpty s then
|
if isStrEmpty s then
|
||||||
[ ]
|
[ ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue