(matcher: RegExp | string)
| 75 | typeof matcher === 'string' ? matcher === string : matcher.test(string); |
| 76 | |
| 77 | const escapeMatcher = (matcher: RegExp | string): string => |
| 78 | typeof matcher === 'string' ? `"${matcher}"` : String(matcher); |
| 79 | |
| 80 | const isTextNode = (node: Text | ChildNode): boolean => |
| 81 | node instanceof Text || ([...node.childNodes].every(childNode => childNode instanceof Text)); |