Browse Source

Merge pull request #1 from bakgat/allow-colon-in-css-class

Added support for colon in css class names
pull/1503/head
Karl Van Iseghem 8 years ago
committed by GitHub
parent
commit
a92f657fe5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/selector_manager/model/Selector.js

2
src/selector_manager/model/Selector.js

@ -72,7 +72,7 @@ const Selector = Backbone.Model.extend(
* @private
*/
escapeName(name) {
return `${name}`.trim().replace(/([^a-z0-9\w-]+)/gi, '-');
return `${name}`.trim().replace(/([^a-z0-9\w-\:]+)/gi, '-');
}
}
);

Loading…
Cancel
Save