summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/exec/escapeshellarg.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/locutus/php/exec/escapeshellarg.js')
-rw-r--r--node_modules/locutus/php/exec/escapeshellarg.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/node_modules/locutus/php/exec/escapeshellarg.js b/node_modules/locutus/php/exec/escapeshellarg.js
deleted file mode 100644
index 3672042..0000000
--- a/node_modules/locutus/php/exec/escapeshellarg.js
+++ /dev/null
@@ -1,18 +0,0 @@
-'use strict';
-
-module.exports = function escapeshellarg(arg) {
- // discuss at: http://locutus.io/php/escapeshellarg/
- // original by: Felix Geisendoerfer (http://www.debuggable.com/felix)
- // improved by: Brett Zamir (http://brett-zamir.me)
- // example 1: escapeshellarg("kevin's birthday")
- // returns 1: "'kevin\\'s birthday'"
-
- var ret = '';
-
- ret = arg.replace(/[^\\]'/g, function (m, i, s) {
- return m.slice(0, 1) + '\\\'';
- });
-
- return "'" + ret + "'";
-};
-//# sourceMappingURL=escapeshellarg.js.map \ No newline at end of file