diff options
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/utile/lib/format.js')
-rw-r--r-- | vnfmarket/src/main/webapp/vnfmarket/node_modules/utile/lib/format.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/utile/lib/format.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/utile/lib/format.js deleted file mode 100644 index 3262dd51..00000000 --- a/vnfmarket/src/main/webapp/vnfmarket/node_modules/utile/lib/format.js +++ /dev/null @@ -1,25 +0,0 @@ -/* - * format.js: `util.format` enhancement to allow custom formatting parameters. - * - * (C) 2012, Nodejitsu Inc. - * MIT LICENSE - * - */ - -var util = require('util'); - -exports = module.exports = function(str) { - var formats = [].slice.call(arguments, 1, 3); - - if (!(formats[0] instanceof Array && formats[1] instanceof Array) || arguments.length > 3) - return util.format.apply(null, arguments); - - var replacements = formats.pop(), - formats = formats.shift(); - - formats.forEach(function(format, id) { - str = str.replace(new RegExp(format), replacements[id]); - }); - - return str; -}; |