diff --git a/src/getSpecialCode.js b/src/getSpecialCode.js index ef93b6e..0728ccf 100644 --- a/src/getSpecialCode.js +++ b/src/getSpecialCode.js @@ -19,7 +19,7 @@ function getSpecialCode(value) { const [code] = _partsSpecial(str); - return SPECIALS[code] ? code : null; + return code ? (SPECIALS[code.toUpperCase()] ? code.toUpperCase() : null) : null; } export { getSpecialCode }; diff --git a/src/getSpecialName.js b/src/getSpecialName.js index 1fbf5db..896d500 100644 --- a/src/getSpecialName.js +++ b/src/getSpecialName.js @@ -13,7 +13,7 @@ function getSpecialName(value) { const str = !value ? "" : value; const code = getSpecialCode(str); - return SPECIALS[code] || null; + return code ? SPECIALS[code.toUpperCase()] : null; } export { getSpecialName };