Skip to content

Commit

Permalink
fix: config name can include hyphens (https-dns-proxy)
Browse files Browse the repository at this point in the history
  • Loading branch information
MakiseKurisu committed Jul 25, 2024
1 parent 1c9e3a2 commit 4231a21
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion openwrt/uci.nix
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,12 @@ let
uciIdentifierCheck = type: attrs:
let
invalid = lib.filter
(n: builtins.match "[a-zA-Z0-9_]+" n == null)
(n: builtins.match (
if type == "config" then
"[a-zA-Z0-9_-]+"
else
"[a-zA-Z0-9_]+"
) n == null)
(lib.attrNames attrs);
in
lib.warnIf
Expand Down

0 comments on commit 4231a21

Please sign in to comment.