Skip to content

Commit

Permalink
Fix template type error
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilJ committed Feb 13, 2014
1 parent 074023e commit 3664909
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions handlebarHelpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ module.exports = function (handlebars, styleguide) {
handlebars.registerHelper('eachSection', function(query) {
var sections,
i, l, buffer = "";
query = (typeof query === 'string') ? query : query.toString();

if (!query.match(/x|\*/g)) {
query = new RegExp('^' + query + '$|^' + query + "\\..*");
Expand Down

0 comments on commit 3664909

Please sign in to comment.