Skip to content

Commit

Permalink
fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
aslansky committed Feb 19, 2014
1 parent 1541e5d commit b6fbd7e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/css-sprite.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = function (opt) {
var queue = function (img) {
sprites.push({
'img': (!opt.base64) ? img : null,
'name': replaceExtension(file.relative, ''),
'name': replaceExtension(file.relative, '').replace(/\/|\\/g, '-'),
'x': (!opt.base64) ? (opt.orientation === 'vertical' ? opt.margin : ctxWidth + opt.margin) : 0,
'y': (!opt.base64) ? (opt.orientation === 'vertical' ? ctxHeight + opt.margin: opt.margin) : 0,
'width': img.width,
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": "css-sprite",
"version": "0.6.1",
"version": "0.6.2",
"description": "css sprite generator",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit b6fbd7e

Please sign in to comment.