Got isSymbol backwards

This commit is contained in:
niten 2022-05-30 16:17:56 -07:00
parent 5d8e8e574c
commit 730709b4e2
1 changed files with 1 additions and 1 deletions

View File

@ -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}"'';