Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
19
Frontend-Learner/node_modules/shell-quote/quote.js
generated
vendored
Normal file
19
Frontend-Learner/node_modules/shell-quote/quote.js
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = function quote(xs) {
|
||||
return xs.map(function (s) {
|
||||
if (s === '') {
|
||||
return '\'\'';
|
||||
}
|
||||
if (s && typeof s === 'object') {
|
||||
return s.op.replace(/(.)/g, '\\$1');
|
||||
}
|
||||
if ((/["\s\\]/).test(s) && !(/'/).test(s)) {
|
||||
return "'" + s.replace(/(['])/g, '\\$1') + "'";
|
||||
}
|
||||
if ((/["'\s]/).test(s)) {
|
||||
return '"' + s.replace(/(["\\$`!])/g, '\\$1') + '"';
|
||||
}
|
||||
return String(s).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g, '$1\\$2');
|
||||
}).join(' ');
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue