angular-html-parser
Version:
A HTML parser extracted from Angular with some modifications
15 lines (14 loc) • 429 B
JavaScript
//#region ../compiler/src/util.ts
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
const DASH_CASE_REGEXP = /-+([a-z0-9])/g;
function dashCaseToCamelCase(input) {
return input.replace(DASH_CASE_REGEXP, (...m) => m[1].toUpperCase());
}
//#endregion
export { dashCaseToCamelCase };