//To declaration the variable for using in "search.html" work of RT189703 or SD-6103 /** * @exclamationmark -- to remove the exclamation mark out of keywords in case it including at the end of keyword to prevent the broken layout * @specialchars -- set of special characters except dash(-) * @specialtrans -- to replace it with blank to ensure work with search * @accentchars -- set of accented characters * @accenttrans -- convert accented characters to regular characters for fixing stripped out of the URL * To update specialchars in future then need to also update specialtrans as well e.g. specialchars = /[]/g; specialtrans ={"": ""} * To update accentchars in future then need to also update accenttrans as well e.g. accentchars = /[]/g; accenttrans ={"": "C"} */ var exclamationmark = ["!"]; var specialchars = /[:;,?&()._]/g; var specialtrans ={"": "", "": "", ":": "", ";": "", "": "", "": "", ",": "", "?": "", "&": "", "(": "", ")": "", ".": "", "_": "", "": ""}; var accentchars = /[]/g; var accenttrans ={"": "C", "": "u", "": "e", "": "a", "": "a", "": "a", "": "c", "": "e", "": "e", "": "e", "": "i", "": "i", "": "i", "": "A", "": "A", "": "A", "": "E", "": "E", "": "ae", "": "AE", "": "o", "": "o", "": "o", "": "u", "": "u", "": "y", "": "O", "": "U", "": "a", "": "i", "": "o", "": "u", "": "n", "": "N"};