Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library not EPUB 3 compatible #1645

Open
gamebeaker opened this issue Jan 21, 2025 · 0 comments
Open

Library not EPUB 3 compatible #1645

gamebeaker opened this issue Jan 21, 2025 · 0 comments

Comments

@gamebeaker
Copy link
Collaborator

If you try to use the Library function with a EPUB 3 it errors out in line 171:

if (PreviousEpubTocEpub3Text != null) {
string1 = "</ol></nav>";
regex2 = new RegExp(".+<text>");
regex3 = new RegExp("</text>.+");
string2 = "<li><a href=\""+ newChaptername.slice(6) + "\">"+AddEpubTocText.match(regex1)[0].replace(regex2, "").replace(regex3, "")+"</a></li>";
PreviousEpubTocEpub3Text = PreviousEpubTocEpub3Text.replace(string1, string2+string1);
}

Uncaught (in promise) TypeError: PreviousEpubTocEpub3Text.replace is not a function
PreviousEpubTocEpub3Text should be a string but apparently isn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant