File manager - Edit - /usr/local/lib/node_modules/ghost-cli/node_modules/trim-repeated/index.js
Back
'use strict'; var escapeStringRegexp = require('escape-string-regexp'); module.exports = function (str, target) { if (typeof str !== 'string' || typeof target !== 'string') { throw new TypeError('Expected a string'); } return str.replace(new RegExp('(?:' + escapeStringRegexp(target) + '){2,}', 'g'), target); };
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings