aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/cssCamelCase.js
blob: a3d5fe6286b56048acb2945f429c047325737b25 (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+
// Microsoft forgot to hump their vendor prefix (#9572)
function cssCamelCase( string ) {
	return camelCase( string.replace( rmsPrefix, "ms-" ) );
}

export default cssCamelCase;