routes/api-routes.js
//Order of this array matters as the first character (escaped backlash should be escaped first)

Order of this array matters as the first character (escaped backlash should be escaped first)
Order of this array matters as the first character ( escaped backlash should be escaped first )
function regexifyString(string) {
	for (var char of charactersToBeEscapedInRegex) {
		string = string.replace(new RegExp(`\\${char}`, "g"), `\\${char}`);
	}
	return new RegExp(`${string}`, "ig");
}
function regexifyString ( string ) { for ( var char of charactersToBeEscapedInRegex ) { string = string . replace ( new RegExp ( ` \\ ${ char } ` , "g" ) , ` \\ ${ char } ` ) ; } return new RegExp ( ` ${ string } ` , "ig" ) ; }
Order of this array matters as the first character (escaped backlash should be escaped first)
Order of this array matters as the first character ( escaped backlash should be escaped first )