(string = '')
| 6 | const REGEX_TO_REMOVE_DOUBLE_SLASH = /\/{2,}/g |
| 7 | |
| 8 | export const cutPathToRoot = (string = '') => |
| 9 | string.replace(REGEX_TO_CUT_TO_ROOT, '$1') |
| 10 | |
| 11 | export const trimLeadingSlashes = (string = '') => |
| 12 | string.replace(REGEX_TO_REMOVE_LEADING_SLASH, '') |
no outgoing calls
no test coverage detected
searching dependent graphs…