stringToLua also accepts a path as input.

This commit is contained in:
Kevin Baensch 2024-05-18 11:15:49 +02:00
parent feaaf56e54
commit 421e9cf4fa
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -35,7 +35,7 @@ let
*/
stringToLua =
string:
assert builtins.isString string;
assert (builtins.isString string || builtins.isPath string);
''"${string}"'';
/**