23 lines
772 B
JavaScript
23 lines
772 B
JavaScript
|
|
'use strict';
|
||
|
|
|
||
|
|
Object.defineProperty(exports, "__esModule", {
|
||
|
|
value: true
|
||
|
|
});
|
||
|
|
exports.default = hyphenateStyleName;
|
||
|
|
|
||
|
|
var _hyphenate = require('./hyphenate');
|
||
|
|
|
||
|
|
var _hyphenate2 = _interopRequireDefault(_hyphenate);
|
||
|
|
|
||
|
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||
|
|
|
||
|
|
var msPattern = /^ms-/; /**
|
||
|
|
* Copyright 2013-2014, Facebook, Inc.
|
||
|
|
* All rights reserved.
|
||
|
|
* https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js
|
||
|
|
*/
|
||
|
|
|
||
|
|
function hyphenateStyleName(string) {
|
||
|
|
return (0, _hyphenate2.default)(string).replace(msPattern, '-ms-');
|
||
|
|
}
|
||
|
|
module.exports = exports['default'];
|