(piece: string)
| 1985 | const pieces = content.split(/(?=^;; Function )/m); |
| 1986 | |
| 1987 | const isHeaderFunction = (piece: string) => |
| 1988 | !piece.includes(sourceBasename) && /\/usr\/|\/opt\/|\/include\//.test(piece); |
| 1989 | |
| 1990 | const kept = |
| 1991 | pieces.length <= 1 |