test should be failed when someone writes this code
else if (pattern[0] === "[" && pattern[pattern.length - 1] === "]") {
return pattern.slice(1, pattern.length - 1).includes(inputLine);
}
but you marked as even “concise” to that solution because your test case just testing as input “a” and pattern “[abc]”