Browse Source

Allow `/` in class names (#5433). Closes #5432

* Allow `/` in class names

This will allow following tailwind classes: md:w-1/2

* refactor: replaced double quote with single quote
pull/5463/head
Mahmudul Hasan 3 years ago
committed by GitHub
parent
commit
7f2f0c460c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/selector_manager/model/Selector.ts

2
src/selector_manager/model/Selector.ts

@ -179,7 +179,7 @@ export default class Selector extends Model {
* @private
*/
static escapeName(name: string) {
return `${name}`.trim().replace(/([^a-z0-9\w-\:@]+)/gi, '-');
return `${name}`.trim().replace(/([^a-z0-9\w-\\:@\\/]+)/gi, '-');
}
}

Loading…
Cancel
Save