Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow string to be passed to remove

  • Loading branch information...
commit e4b9253a727a9adef05c3d5b4c7bff0b57fe54eb 1 parent 22a03f3
@madhums madhums authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/imager.js
View
3  lib/imager.js
@@ -197,6 +197,9 @@ Imager.prototype.remove = function (files, callback, variant) {
var self = this
+ if (!Array.isArray(files) && typeof files === 'string')
+ files = files.split()
+
var prepareRemove = function (file, iteratorCallback) {
self.prepareRemove(file, iteratorCallback, variant)
}
Please sign in to comment.
Something went wrong with that request. Please try again.