katoikia-app/web-ui/web-react/node_modules/dom-helpers/esm/hyphenateStyle.js

10 lines
362 B
JavaScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
/**
* Copyright 2013-2014, Facebook, Inc.
* All rights reserved.
* https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/hyphenateStyleName.js
*/
import hyphenate from './hyphenate';
var msPattern = /^ms-/;
export default function hyphenateStyleName(string) {
return hyphenate(string).replace(msPattern, '-ms-');
}