JS String startSwith игнорирует дело
let name = "FoOOBaAr"
let match = "fOO"
if (name.toLowerCase().startsWith(match.toLowerCase())) {....
Wide-eyed Fox
let name = "FoOOBaAr"
let match = "fOO"
if (name.toLowerCase().startsWith(match.toLowerCase())) {....