diff --git a/assets/reader/index.js b/assets/reader/index.js index 893e074..8baf329 100644 --- a/assets/reader/index.js +++ b/assets/reader/index.js @@ -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:");