(tag: string)
| 146 | } |
| 147 | |
| 148 | const tagToPath = (tag: string): string => |
| 149 | tag |
| 150 | .replace(/[^a-zA-Z0-9]+/g, "-") // Replace non-alphanumeric characters with hyphen |
| 151 | .replace(/([a-z])([A-Z])/g, "$1-$2") // Insert hyphen before uppercase letters |
| 152 | .toLowerCase() |
| 153 | |
| 154 | /** |
| 155 | * @since 1.0.0 |
no outgoing calls
no test coverage detected
searching dependent graphs…