Skip to content

Conversation

@solcik
Copy link
Contributor

@solcik solcik commented Mar 10, 2019

*/
Nette.toggle = function(selector, visible, srcElement) { // eslint-disable-line no-unused-vars
if (/^\w+$/.test(selector)) { // id
if (/^\w[\w\d-_.,]*$/.test(selector)) { // id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it must be [\w\d_.,-]

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed as you suggested.

@dg
Copy link
Member

dg commented Mar 10, 2019

Thanks!

@dg dg merged commit f92f9fb into nette:master Mar 10, 2019
dg pushed a commit that referenced this pull request Mar 10, 2019
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

Successfully merging this pull request may close these issues.

netteForms: Nette.toggle back compatibility

2 participants