(value: string)
| 949 | } |
| 950 | |
| 951 | function trimTextLikeEdges(value: string): { core: string; hasLeadingWhitespace: boolean; hasTrailingWhitespace: boolean } { |
| 952 | return { |
| 953 | core: value.replace(/^\s+/, "").replace(/\s+$/, ""), |
| 954 | hasLeadingWhitespace: /^\s/.test(value), |
| 955 | hasTrailingWhitespace: /\s$/.test(value), |
| 956 | }; |
| 957 | } |
| 958 | |
| 959 | function insertSingleVisibleBoundarySpace(normalized: any[], upcomingChild?: any): void { |
| 960 | const previous = normalized[normalized.length - 1]; |
no outgoing calls
no test coverage detected