[fix] CFI from XPath issue
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
39c78997ac
commit
37b6ac10ac
@ -943,7 +943,7 @@ class EBookReader {
|
|||||||
// Replace `.0` Ending Indexes
|
// Replace `.0` Ending Indexes
|
||||||
.replace(/\.(\d+)$/, "")
|
.replace(/\.(\d+)$/, "")
|
||||||
// Remove potential trailing `text()`
|
// Remove potential trailing `text()`
|
||||||
.replace(/\/text\(\)$/, "");
|
.replace(/\/text\(\)(\[\d+\])?$/, "");
|
||||||
|
|
||||||
// Validate Namespace
|
// Validate Namespace
|
||||||
if (namespaceURI) remainingXPath = remainingXPath.replaceAll("/", "/ns:");
|
if (namespaceURI) remainingXPath = remainingXPath.replaceAll("/", "/ns:");
|
||||||
|
Loading…
Reference in New Issue
Block a user