Sha256: fe37d6f8879c74f179a7bd7062b530d2369fe1cc1b3b02dab6484d3e082d3d9c
Contents?: true
Size: 319 Bytes
Versions: 11
Compression:
Stored size: 319 Bytes
Contents
const toLowerCase = Function.call.bind("".toLowerCase); export default function formatBuilderName(type) { // FunctionExpression -> functionExpression // JSXIdentifier -> jsxIdentifier // V8IntrinsicIdentifier -> v8IntrinsicIdentifier return type.replace(/^([A-Z](?=[a-z0-9])|[A-Z]+(?=[A-Z]))/, toLowerCase); }
Version data entries
11 entries across 10 versions & 3 rubygems