/**
 * 공백을 무시하고 키워드가 문자열에 포함되어 있는지 검사
 * 키워드의 공백은 임의의 공백 문자(0개 이상)로 매칭됨
 * 대소문자 구분 없음
 */
export function matchKeyword(str: string, keyword: string): boolean {
  const normalize = (str: string) => str.replace(/\s+/g, '').toLowerCase();
  return normalize(str).includes(normalize(keyword));
}
