We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4afcad commit 4d5c03aCopy full SHA for 4d5c03a
src/basic/hyphenate.js
@@ -22,17 +22,12 @@ const prefixAndLowerCase = char => `-${char.toLowerCase()}`;
22
* As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
23
* is converted to `-ms-`.
24
*/
25
-export const hyphenate = (name, { cache }) => {
26
- const cachedName = cache[name];
27
- if (cachedName) {
28
- return cachedName;
29
- }
30
-
31
- return (cache[name] = uppercaseCheck.test(name)
+export const hyphenate = name => {
+ return uppercaseCheck.test(name)
32
? name
33
.replace(uppercasePattern, prefixAndLowerCase)
34
.replace(msPattern, "-ms-")
35
- : name);
+ : name;
36
};
37
38
export default hyphenate;
0 commit comments