Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed few errors in comma insertion in Lorem Ipsum module

  • Loading branch information...
commit 8b547e8851cf94a7d6bcfc989730a03f97915783 1 parent 38a3768
@sergeche sergeche authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 javascript/generators/lorem-ipsum.js
View
4 javascript/generators/lorem-ipsum.js
@@ -173,7 +173,9 @@ emmet.define('lorem', function(require, _) {
}
_.each(_.range(totalCommas), function(ix) {
- words[ix] += ',';
+ if (ix < words.length - 1) {
+ words[ix] += ',';
+ }
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.