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

Insert Close Tag: too big quantifier in {,} #17

Open
jjeising opened this issue Aug 29, 2012 · 0 comments
Open

Insert Close Tag: too big quantifier in {,} #17

jjeising opened this issue Aug 29, 2012 · 0 comments

Comments

@jjeising
Copy link

I work with very big XML files (+43k lines). The Insert Close Tag command fails in these documents with the following error

Insert Close Tag:18: too big quantifier in {,}: /(.*\n){43881}.{4}/ (RegexpError)

It looks like rails supports this quantifier up to about 32k lines. I tried to chop of the first lines of the document, but it looks like this fails because of the way the remaining document is scanned.

I think this has to be rewritten, to scan for open tags beginning from the end of the document until it finds the first tag that is not closed already.

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