[fix] CFI from XPath issue
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Evan Reichard 2023-10-25 22:44:16 -04:00
parent 39c78997ac
commit 37b6ac10ac

View File

@ -943,7 +943,7 @@ class EBookReader {
// Replace `.0` Ending Indexes
.replace(/\.(\d+)$/, "")
// Remove potential trailing `text()`
.replace(/\/text\(\)$/, "");
.replace(/\/text\(\)(\[\d+\])?$/, "");
// Validate Namespace
if (namespaceURI) remainingXPath = remainingXPath.replaceAll("/", "/ns:");