MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / removePrefix

Function removePrefix

lib/locator.js:749–751  ·  view source on GitHub ↗

* @private * Removes `./` and `.//` symbols from xpath's start * @param {string} xpath * @returns {string}

(xpath)

Source from the content-addressed store, hash-verified

747 * @returns {string}
748 */
749function removePrefix(xpath) {
750 return xpath.replace(/^(\.|\/)+/, '')
751}
752
753/**
754 * @private

Callers 1

convertToSubSelectorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected