mirror of
https://github.com/zhigang1992/styled-components.git
synced 2026-04-29 01:35:53 +08:00
Fix regex breaking on IE in hyphenateStyleName (#3267)
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
*/
|
||||
|
||||
const uppercaseCheck = /([A-Z])/;
|
||||
const uppercasePattern = new RegExp(uppercaseCheck, 'g');
|
||||
const uppercasePattern = /([A-Z])/g;
|
||||
const msPattern = /^ms-/;
|
||||
const prefixAndLowerCase = (char: string): string => `-${char.toLowerCase()}`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user