UX-agent / backend /node_modules /@hapi /hoek /lib /escapeRegex.js
AUXteam's picture
Set Gemini API version to v1
8c741f6 verified
'use strict';
const internals = {};
module.exports = function (string) {
// Escape ^$.*+-?=!:|\/()[]{},
return string.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g, '\\$&');
};