(segment: string)
| 57 | * missed normalization is recoverable; a wrongly merged issue is not. |
| 58 | */ |
| 59 | const looksLikeContentHash = (segment: string): boolean => { |
| 60 | let upper = 0; |
| 61 | let digits = 0; |
| 62 | for (const char of segment) { |
| 63 | if (char >= "A" && char <= "Z") upper += 1; |
| 64 | else if (char >= "0" && char <= "9") digits += 1; |
| 65 | } |
| 66 | return upper >= 2 || (upper >= 1 && digits >= 1) || digits >= 2; |
| 67 | }; |
| 68 | |
| 69 | /** |
| 70 | * Remove build content hashes from a path, module name or culprit string, |
no outgoing calls
no test coverage detected