Merge #100592: nixos/kresd: Fix unportable regex

This commit is contained in:
Vladimír Čunát 2021-03-28 20:27:49 +02:00
commit 0032a3fc81
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA

View File

@ -10,7 +10,7 @@ let
mkListen = kind: addr: let
al_v4 = builtins.match "([0-9.]+):([0-9]+)" addr;
al_v6 = builtins.match "\\[(.+)]:([0-9]+)" addr;
al_portOnly = builtins.match "()([0-9]+)" addr;
al_portOnly = builtins.match "([0-9]+)" addr;
al = findFirst (a: a != null)
(throw "services.kresd.*: incorrect address specification '${addr}'")
[ al_v4 al_v6 al_portOnly ];