aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/cssCamelCase.js
blob: 895303248ce398fbac3b9a25c788f6ab1b2e196e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import camelCase from "../core/camelCase.js";

// Matches dashed string for camelizing
var rmsPrefix = /^-ms-/;

// Convert dashed to camelCase, handle vendor prefixes.
// Used by the css & effects modules.
// Support: IE <=9 - 11+, Edge 12 - 18+
// Microsoft forgot to hump their vendor prefix (#9572)
function cssCamelCase( string ) {
	return camelCase( string.replace( rmsPrefix, "ms-" ) );
}

export default cssCamelCase;