* @private * Removes `./` and `.//` symbols from xpath's start * @param {string} xpath * @returns {string}
(xpath)
| 747 | * @returns {string} |
| 748 | */ |
| 749 | function removePrefix(xpath) { |
| 750 | return xpath.replace(/^(\.|\/)+/, '') |
| 751 | } |
| 752 | |
| 753 | /** |
| 754 | * @private |
no outgoing calls
no test coverage detected