Skip to content

Commit

Permalink
Allow / in class names (#5433). Closes #5432
Browse files Browse the repository at this point in the history
* Allow `/` in class names

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

* refactor: replaced double quote with single quote
  • Loading branch information
mahmudz authored Oct 3, 2023
1 parent 9f839c9 commit 7f2f0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selector_manager/model/Selector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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, '-');
}
}

Expand Down

0 comments on commit 7f2f0c4

Please sign in to comment.