(str: string)
| 255 | } |
| 256 | |
| 257 | export function removeRepetition(str: string): string { |
| 258 | const regex = /^(.*?)(?:\s)?\1$/; |
| 259 | return str.replace(regex, "$1"); |
| 260 | } |
| 261 | |
| 262 | export function findHeading(text: string): { text: string; heading: string } { |
| 263 | const lines = text.split("\n"); |
no outgoing calls
no test coverage detected