(prefix, str)
| 203 | } |
| 204 | |
| 205 | function buildUniqueSegment(prefix, str) { |
| 206 | let id = 0; |
| 207 | do { |
| 208 | const ident = prefix + id++; |
| 209 | if (str.indexOf(ident) === -1) return ident; |
| 210 | } while (true); |
| 211 | } |
| 212 | |
| 213 | function buildSafeBase(str) { |
| 214 | const maxDotParts = str.split("..").length - 1; |
no test coverage detected
searching dependent graphs…