Tests: revert concurrency group change
[jquery.git] / src / core / camelCase.js
blobdca86fc33b9fcb49556ce41e443beb62d2ec21fb
1 // Matches dashed string for camelizing
2 var rdashAlpha = /-([a-z])/g;
4 // Used by camelCase as callback to replace()
5 function fcamelCase( _all, letter ) {
6         return letter.toUpperCase();
9 // Convert dashed to camelCase
10 export function camelCase( string ) {
11         return string.replace( rdashAlpha, fcamelCase );