* Return a sanitized version of an arbitrary string, so it can be used as an ID
(id: string)
| 633 | * Return a sanitized version of an arbitrary string, so it can be used as an ID |
| 634 | */ |
| 635 | function sanitizeId(id: string) { |
| 636 | // Escape path seps as double dashes |
| 637 | return id.replace(PATH_SEP_REGEX, '--'); |
| 638 | } |
| 639 | |
| 640 | /** |
| 641 | * Options for `construct.addMetadata()`. |
no outgoing calls
no test coverage detected