From 730709b4e20e3f271521d53eb09c02925a97bbab Mon Sep 17 00:00:00 2001 From: niten Date: Mon, 30 May 2022 16:17:56 -0700 Subject: [PATCH] Got isSymbol backwards --- to-edn.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/to-edn.nix b/to-edn.nix index 7b37e0c..b5c3487 100644 --- a/to-edn.nix +++ b/to-edn.nix @@ -2,7 +2,7 @@ with lib; let - isSymbol = str: isNull (builtins.match "^'.+" str); + isSymbol = str: !(isNull (builtins.match "^'.+" str)); stripQuote = str: head (builtins.match "^'(.+)" str); parseStr = str: if (isSymbol str) then (stripQuote str) else ''"${str}"'';