(text: string)
| 59 | |
| 60 | const userProvidedKeyEscapeRegex = /\/+/g; |
| 61 | function escapeUserProvidedKey(text: string): string { |
| 62 | return text.replace(userProvidedKeyEscapeRegex, '$&/'); |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Generate a key string that identifies a element within a set. |