Skip to content

Commit

Permalink
Fixed file name regression bug (closes #186)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkphl committed Aug 15, 2016
1 parent fbc3186 commit 370cf6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.3.5 Bugfix release (2016-08-15)
* Fixed file name regression bug ([#186](https://github.com/jkphl/svg-sprite/issues/186))

## 1.3.4 Bugfix release (2016-08-12)
* Updated dependencies
* Extended the ID generator callback signature ([#176](https://github.com/jkphl/svg-sprite/issues/176))
Expand Down
2 changes: 1 addition & 1 deletion lib/svg-sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ SVGSpriter.prototype.add = function(file, name, svg) {
file = _.trim(file);

// If the name part of the file path is absolute
if (path.isAbsolute(name)) {
if (name && path.isAbsolute(name)) {
error = util.format('SVGSpriter.add: "%s" is not a valid relative file name', name);

// Else
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "svg-sprite",
"version": "1.3.4",
"version": "1.3.5",
"author": "Joschi Kuphal <[email protected]> (https://jkphl.is)",
"description": "SVG sprites & stacks galore — A low-level Node.js module that takes a bunch of SVG files, optimizes them and bakes them into SVG sprites of several types along with suitable stylesheet resources (e.g. CSS, Sass, LESS, Stylus, etc.)",
"homepage": "https://github.com/jkphl/svg-sprite",
Expand Down

0 comments on commit 370cf6a

Please sign in to comment.