Permalink
Browse files

bump deps

  • Loading branch information...
1 parent 1230a58 commit 80fba6fa7db80898e591f85c39f3cafc7cd72109 @sindresorhus committed Feb 20, 2014
Showing with 5 additions and 7 deletions.
  1. +1 −3 index.js
  2. +3 −3 package.json
  3. +1 −1 test.js
View
@@ -44,9 +44,7 @@ function generateSizes(url, size, opts) {
url = url.replace(/^(?:https?:\/\/)?www\./, '');
// make it a valid filename
- // remove | ? : * " < > \ characters that are not
- // removed by slugify-url and are invalid file names
- var filenameUrl = slugifyUrl(url).replace(/\||\?|\:|\*|\"|\<|\>|\\/g, '');
+ var filenameUrl = slugifyUrl(url);
var filename = filenameUrl + '-' + size + '.png';
var dim = size.split(/x/i);
View
@@ -38,14 +38,14 @@
"dependencies": {
"each-async": "~0.1.2",
"chalk": "~0.4.0",
- "nopt": "~2.1.2",
- "slugify-url": "~1.0.1",
+ "nopt": "~2.2.0",
+ "slugify-url": "~1.1.1",
"sudo-block": "~0.3.0",
"lodash": "~2.4.1",
"get-stdin": "~0.1.0",
"phantomjs": "1.9.2-6",
"base64-stream": "~0.1.2",
- "pageres": "~0.1.0",
+ "getres": "~0.1.1",
"object-assign": "~0.2.0"
},
"devDependencies": {
View
@@ -25,7 +25,7 @@ it('should remove special characters from the URL to create a valid filename', f
pageres(['http://microsoft.com/?query=pageres*|<>:"\\'], ['1024x768'], null, function (err, streams) {
assert(!err);
assert.strictEqual(streams.length, 1);
- assert.strictEqual(streams[0].filename, 'microsoft.com!query=pageres-1024x768.png');
+ assert.strictEqual(streams[0].filename, 'microsoft.com!!query=pageres!!!!!!!-1024x768.png');
cb();
});
});

0 comments on commit 80fba6f

Please sign in to comment.