Skip to content

Commit

Permalink
fix minor bug in lib/kss.js
Browse files Browse the repository at this point in the history
  • Loading branch information
genbit committed Dec 24, 2012
1 parent 91d48a3 commit 8f16b3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kss.js
Expand Up @@ -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
Expand Down

0 comments on commit 8f16b3a

Please sign in to comment.