* Strip a delimited "block" from the start of the `messagePart`, if it is found. * * If a marker character (:) actually appears in the content at the start of a tagged string or * after a substitution expression, where a block has not been provided the character must be * escaped with a backslas
(messagePart: string, rawMessagePart: string)
| 176 | * @throws an error if the block is unterminated |
| 177 | */ |
| 178 | function stripBlock(messagePart: string, rawMessagePart: string) { |
| 179 | return rawMessagePart.charAt(0) === BLOCK_MARKER |
| 180 | ? messagePart.substring(findEndOfBlock(messagePart, rawMessagePart) + 1) |
| 181 | : messagePart; |
| 182 | } |
no test coverage detected
searching dependent graphs…