* Return a sanitized version of an arbitrary string, so it can be used as an ID
(id: string)
| 606 | * Return a sanitized version of an arbitrary string, so it can be used as an ID |
| 607 | */ |
| 608 | function sanitizeId(id: string) { |
| 609 | // Escape path seps as double dashes |
| 610 | return id.replace(PATH_SEP_REGEX, '--'); |
| 611 | } |
| 612 | |
| 613 | /** |
| 614 | * Options for `construct.addMetadata()`. |
no outgoing calls
no test coverage detected
searching dependent graphs…