![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/vreg/node_modules/upper-case/ |
/** * Special language-specific overrides. * * Source: ftp://ftp.unicode.org/Public/UCD/latest/ucd/SpecialCasing.txt * * @type {Object} */ var LANGUAGES = { tr: { regexp: /[\u0069]/g, map: { '\u0069': '\u0130' } }, az: { regexp: /[\u0069]/g, map: { '\u0069': '\u0130' } }, lt: { regexp: /[\u0069\u006A\u012F]\u0307|\u0069\u0307[\u0300\u0301\u0303]/g, map: { '\u0069\u0307': '\u0049', '\u006A\u0307': '\u004A', '\u012F\u0307': '\u012E', '\u0069\u0307\u0300': '\u00CC', '\u0069\u0307\u0301': '\u00CD', '\u0069\u0307\u0303': '\u0128' } } } /** * Upper case a string. * * @param {String} str * @return {String} */ module.exports = function (str, locale) { var lang = LANGUAGES[locale] str = str == null ? '' : String(str) if (lang) { str = str.replace(lang.regexp, function (m) { return lang.map[m] }) } return str.toUpperCase() }