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 45933a2 commit a3b0a45Copy full SHA for a3b0a45
test/camel-case.js
@@ -17,6 +17,8 @@ const data = {
17
webkitApp: "-webkit-app",
18
onChange: "on-change",
19
OnChange: "-on-change",
20
+ overflowWrap: "overflow-wrap",
21
+ overflowX: "overflow-x",
22
zIndex: "z-index",
23
"::selection": "::selection",
24
"::mozSelection": "::-moz-selection",
un-camel-case.js
@@ -1,7 +1,7 @@
1
"use strict";
2
function unCamelCase (str) {
3
return str.replace(/[\w-]+/g, (s) => (
4
- /^[A-Z]?[a-z]*(?:[A-Z][a-z]+)+$/.test(s)
+ /^[A-Z]?[a-z]*(?:[A-Z][a-z]*)+$/.test(s)
5
? s.replace(
6
/[A-Z]/g,
7
s => "-" + s.toLowerCase()
0 commit comments