Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix the JSON.parse to work with rhino too.

  • Loading branch information...
commit 2e74cdd47b44bbd1331fa233c617f9f329989cf1 1 parent 515b82b
@creationix authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/haml.js
View
2  lib/haml.js
@@ -32,7 +32,7 @@ if (exports) {
break;
default:
try {
- value = JSON.parse("(" + attribs[key] +")");
+ value = JSON.parse("[" + attribs[key] +"]")[0];
if (value === true) {
value = key;
}

0 comments on commit 2e74cdd

Please sign in to comment.
Something went wrong with that request. Please try again.