(value: string)
| 71 | * leaving every other character in place. |
| 72 | */ |
| 73 | export const stripContentHashes = (value: string): string => |
| 74 | value.replace(HASH_TAIL, (match, segment: string) => |
| 75 | looksLikeContentHash(segment) ? "" : match, |
| 76 | ); |
| 77 | |
| 78 | /** True when the value carries at least one build content hash. */ |
| 79 | export const containsContentHash = (value: string): boolean => stripContentHashes(value) !== value; |
no test coverage detected