swc/crates/swc_bundler/tests/.cache/deno/3a098f75df7a43a9b5b61a85bd989e9827ff73f4.ts
2021-11-09 20:42:49 +09:00

14 lines
362 B
TypeScript

// Loaded from https://deno.land/x/case@v2.1.0/headerCase.ts
import upperCase from "./upperCase.ts";
import normalCase from "./normalCase.ts";
export default function headerCase(value: string, locale?: string): string {
return normalCase(value, locale, "-").replace(/^.|-./g, function (
m: string,
): string {
return upperCase(m, locale);
});
}