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