Skip to content

Commit 8e0ce0f

Browse files
explicitly check that isGlob is undefined, preventing a false negative on empty strings
1 parent fe77394 commit 8e0ce0f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ the output would be `./foo/bar.html` and `./foo/baz.html`
146146
I had to work with several hundred repeated data structures that never changed. Keeping them all in html was silly, but pushing out a template engine for the end user to compile the same information multiple times was even sillier. This allows you to have your templated cake and eat it too.
147147

148148
## Release History
149+
* 0.7.6 - Kristofferson - explicitly check that `isGlob` is undefined, preventing a false negative on empty strings
149150
* 0.7.5 - Redford - add `registerFullPath` option to prevent partial/helper registration clobbering, update README
150151
* 0.7.4 - M. Jean - don't send objects to handlebars.compile, code cleanup
151152
* 0.7.3 - Cousin Ben - switch from require to readFile to allow for html in partials

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "grunt-compile-handlebars",
33
"description": "Compile handlebar templates, outputting static HTML",
4-
"version": "0.7.5",
4+
"version": "0.7.6",
55
"homepage": "https://github.com/patrickkettner/grunt-compile-handlebars",
66
"author": {
77
"name": "Patrick Kettner",

tasks/compile-handlebars.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ module.exports = function(grunt) {
100100
if (grunt.file.exists(filename)) {
101101
return filename;
102102
}
103-
if (isGlob(filename)) {
103+
if (isGlob(filename) !== undefined) {
104104
return isGlob(filename) + basename + filetype(filename);
105105
}
106106
return filename;

0 commit comments

Comments
 (0)