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

Replacement Regular expression #28

Open
elo80ka opened this issue Feb 27, 2014 · 1 comment
Open

Replacement Regular expression #28

elo80ka opened this issue Feb 27, 2014 · 1 comment

Comments

@elo80ka
Copy link
Owner

elo80ka commented Feb 27, 2014

From jh.pin...@gmail.com on May 11, 2011 08:05:14

What steps will reproduce the problem? add a row to a formset. "id" and "for" Elements attributes are not generated correctly. "Id" and "For" contains "id_" prefix thats mismatch the replacement regular expression.

I use this one : var idRegex = new RegExp('(.)' + prefix + '-\d+-(.)'),
replacement = '$1' + prefix + '-' + ndx + '-$2'; What is the expected output? What do you see instead? What version of the product are you using? On what operating system? jQuery Formset 1.2
Django 1.3

Original issue: http://code.google.com/p/django-dynamic-formset/issues/detail?id=28

@elo80ka
Copy link
Owner Author

elo80ka commented Feb 27, 2014

From swihart....@gmail.com on October 09, 2011 15:25:31

This annoying bug is fixed perfectly with the regex given above, thank you.

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