Skip to content

Commit

Permalink
fix case where keys have digits but are in fact no array keys
Browse files Browse the repository at this point in the history
  • Loading branch information
dword-design committed Dec 25, 2019
1 parent 2511009 commit 3d42040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsontosass.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ var JsonToSass = function () {
nestLevel--;
break;
default:
if (key.match(/^[0-9]+$/)) {
if (Array.isArray(obj)) {
map.push(obj[key]);
} else {
map.push(key + createColon() + obj[key]);
Expand Down

0 comments on commit 3d42040

Please sign in to comment.