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

Certain characters should be forbidden in components name #224

Open
seblucas opened this issue Sep 10, 2013 · 0 comments
Open

Certain characters should be forbidden in components name #224

seblucas opened this issue Sep 10, 2013 · 0 comments

Comments

@seblucas
Copy link

Hi,

I've made a PHP wrapper to read Epub with Monocle and in an Epub the components looks like that :

Author-BookTitle-split-00X

That cause this problem :

var matcher = new RegExp('^'+decodeURIComponent(cmptId)+"(#(.+)|$)");

SyntaxError: invalid range in character class
http://localhost/monocle/resources/monocle/scripts/monocore.js
Line 2952

The dash (-) is interpreted as a part of the regexp.

I know I can replace all dashes by other characters but I think you should know.

Thanks for Monocle :)

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

No branches or pull requests

1 participant