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

14 lines
355 B
TypeScript

// Loaded from https://deno.land/x/case/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);
});
}