Skip to content

humanizeKey glues acronyms to the next word in Vibenet fallback labels #69

Description

@omerbek

Summary

Vibenet uses humanizeKey to generate fallback labels for unknown contract keys. The current camelCase splitting only handles lowercase/digit to uppercase boundaries, so embedded acronyms stay attached to the following word.

Repro

Current behavior:

humanizeKey('myUSDCToken') // "My USDCToken"
humanizeKey('someAPIKey')  // "Some APIKey"

Expected labels are My USDC Token and Some API Key.

Expected behavior

The formatter should split acronym-to-word boundaries before applying the existing lowercase/digit-to-uppercase split, while preserving current output for normal camelCase keys such as usdvToken and l2OutputOracle.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions