diff --git a/src/modules/sub/utils.js b/src/modules/sub/utils.js index c0c373b7..678eb70e 100644 --- a/src/modules/sub/utils.js +++ b/src/modules/sub/utils.js @@ -27,9 +27,9 @@ export function cleanString(string) { return string; } export function verifyLanguageCode(code) { - const code = String(code.slice(0, 2).toLowerCase()); + const langCode = String(code.slice(0, 2).toLowerCase()); if (RegExp(/[a-z]{2}/).test(code)) { - return code + return langCode } return "en" }