GoScrobble/web/node_modules/dom-helpers/esm/camelizeStyle.js

10 lines
357 B
JavaScript

/**
* Copyright 2014-2015, Facebook, Inc.
* All rights reserved.
* https://github.com/facebook/react/blob/2aeb8a2a6beb00617a4217f7f8284924fa2ad819/src/vendor/core/camelizeStyleName.js
*/
import camelize from './camelize';
var msPattern = /^-ms-/;
export default function camelizeStyleName(string) {
return camelize(string.replace(msPattern, 'ms-'));
}