Skip to content

Commit

Permalink
Allow underscore in attribut name 😢, Resolves #300
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinchappell committed Apr 14, 2017
1 parent 92d41cf commit ee803e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ utils.makeClassName = str => {
* @return {String} converter string
*/
utils.safename = str => {
return str.replace(/\s/g, '-').replace(/[^a-zA-Z0-9\-]/g, '').toLowerCase();
return str.replace(/\s/g, '-').replace(/[^a-zA-Z0-9\_-]/g, '').toLowerCase();
};

/**
Expand Down

0 comments on commit ee803e8

Please sign in to comment.