PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/jsdoc/node_modules/escape-string-regexp

Просмотр файла: index.js

'use strict';

const matchOperatorsRegex = /[|\\{}()[\]^$+*?.-]/g;

module.exports = string => {
	if (typeof string !== 'string') {
		throw new TypeError('Expected a string');
	}

	return string.replace(matchOperatorsRegex, '\\$&');
};

Выполнить команду


Для локальной разработки. Не используйте в интернете!