Skip to content

Commit

Permalink
Updated Selector escapeName to accomodated special characters used in…
Browse files Browse the repository at this point in the history
… tailwind class names
  • Loading branch information
bernesto committed Mar 4, 2024
1 parent ac554a3 commit a0a849f
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 @@ -191,7 +191,7 @@ export default class Selector extends Model<SelectorProps & { [key: string]: unk
* @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 a0a849f

Please sign in to comment.