This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
reValuate/node_modules/css-in-js-utils/lib/camelCaseProperty.js

15 lines
366 B
JavaScript
Raw Normal View History

2021-04-02 02:24:13 +03:00
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = camelCaseProperty;
var dashRegex = /-([a-z])/g;
var msRegex = /^Ms/g;
function camelCaseProperty(property) {
return property.replace(dashRegex, function (match) {
return match[1].toUpperCase();
}).replace(msRegex, 'ms');
}
module.exports = exports['default'];