grunt-montage
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "grunt-montage", | ||
"description": "Generate CSS sprite sheets and the corresponding stylesheet", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "James Allardice", |
@@ -7,3 +7,4 @@ module.exports = function (grunt) { | ||
path = require("path"), | ||
mkdirp = require("mkdirp"); | ||
mkdirp = require("mkdirp"), | ||
rSpecial = /([!"#$%&'()*+,-.\/:;<=>?@[\]\\^`{}|~])/g; | ||
@@ -46,3 +47,3 @@ grunt.registerMultiTask("montage", "Generate CSS sprite sheets and the corresponding stylesheet", function () { | ||
offsetTop = -size * Math.floor(i / cols), | ||
className = path.basename(image).replace(/\.\w+$/, ""); | ||
className = path.basename(image).replace(/\.\w+$/, "").replace(rSpecial, "\\$1"); | ||
@@ -49,0 +50,0 @@ // Only add the units if the value is not 0 |
28953
16
132