From b22c117a2757552488fa0ff5ad63835f2a7fe449 Mon Sep 17 00:00:00 2001 From: Romeo Ahmed Date: Tue, 3 Mar 2026 23:06:33 +0800 Subject: [PATCH] fix(nix): fix ill-defined escape warning in grammars.nix (#15370) --- grammars.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/grammars.nix b/grammars.nix index 4a2de633..818dcdf8 100644 --- a/grammars.nix +++ b/grammars.nix @@ -14,7 +14,7 @@ && builtins.hasAttr "rev" grammar.source; isGitHubGrammar = grammar: lib.hasPrefix "https://github.com" grammar.source.git; toGitHubFetcher = url: let - match = builtins.match "https://github\.com/([^/]*)/([^/]*)/?" url; + match = builtins.match "https://github\\.com/([^/]*)/([^/]*)/?" url; in { owner = builtins.elemAt match 0; repo = builtins.elemAt match 1; -- 2.51.2