diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2019-10-12 19:40:04 +0200 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2019-10-12 19:40:04 +0200 |
commit | d7444bae9477755fdece66c5dab13de09fb3d9b1 (patch) | |
tree | 7b3a7c377399275333bf15709709c6fa2bd4a401 /lib | |
parent | 33f717e2de267fafd22b9af3745240cf7051043f (diff) | |
download | npm4nix-d7444bae9477755fdece66c5dab13de09fb3d9b1.tar.gz |
Escape quotes in description
Diffstat (limited to 'lib')
-rw-r--r-- | lib/template.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/template.js b/lib/template.js index c1446a9..9664d88 100644 --- a/lib/template.js +++ b/lib/template.js @@ -77,7 +77,7 @@ buildNpmPackage { ${source} meta = { - description = "${pkg.description || ''}"; + description = ${JSON.stringify (pkg.description || '')}; homepage = "${pkg.homepage || ''}"; license = "${pkg.license || ''}"; }; |