diff --git a/lib/puppet_x/puppetlabs/strings/pops/yard_statement.rb b/lib/puppet_x/puppetlabs/strings/pops/yard_statement.rb index 927131916..2e40858e7 100644 --- a/lib/puppet_x/puppetlabs/strings/pops/yard_statement.rb +++ b/lib/puppet_x/puppetlabs/strings/pops/yard_statement.rb @@ -58,7 +58,7 @@ def extract_comments # FIXME: The gsub trims comments, but is extremely optimistic: It # assumes only one space separates the comment body from the # comment character. - comments.unshift line.gsub(/^\s*#\s/, '') + comments.unshift line.gsub(/^\s*#[ \t]/, '') else # No comment found on this line. We must be done piecing together a # comment block.