(title: string, visibleText: string)
| 339 | * zaehlt, ist genau diese Bedingung. |
| 340 | */ |
| 341 | export function explainsMore(title: string, visibleText: string): boolean { |
| 342 | const tidy = (value: string): string => value.replace(/\s+/g, ' ').trim().toLowerCase(); |
| 343 | const said = tidy(title); |
| 344 | if (said.length === 0) { |
| 345 | return false; |
| 346 | } |
| 347 | return !tidy(visibleText).includes(said); |
| 348 | } |
no test coverage detected