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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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, '-'); |
|
|
|
} |
|
|
|
} |
|
|
|
); |
|
|
|
|