Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix minor bug in lib/kss.js

  • Loading branch information...
commit 8f16b3abab5040af10ea768f3b75979853ecd171 1 parent 91d48a3
@genbit genbit authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/kss.js
View
2  lib/kss.js
@@ -381,7 +381,7 @@ checkReference = function(paragraphs, options) {
options = options || {};
- if (words[0].toLowerCase() === 'styleguide') {
+ if (words && words[0].toLowerCase() === 'styleguide') {
numbers = paragraph.match(/styleguide\s*([0-9\.]*)/i);
if (numbers[1]) {
return numbers[1].replace(/^\.|\.$|(\.0){1,}$/g, ''); // Removes trailing 0's and .'s
Please sign in to comment.
Something went wrong with that request. Please try again.