MCPcopy
hub / github.com/marktext/marktext / snakeToCamel

Function snakeToCamel

packages/muya/src/utils/index.ts:50–52  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

48export const isLengthEven = (str = '') => str.length % 2 === 0;
49
50export function snakeToCamel(name: string) {
51 return name.replace(/_([a-z])/g, (_p0, p1) => p1.toUpperCase());
52}
53/**
54 * Are two arrays have intersection
55 */

Callers 5

htmlTagFunction · 0.90
outputMethod · 0.90
delEmStrongFacFunction · 0.90
referenceLinkFunction · 0.90
linkFunction · 0.90

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected