UNPKG

@chargetrip/mcp

Version:

Chargetrip MCP server

12 lines (11 loc) 404 B
export class TextUtil { /** * @description Replaces underscores with spaces in a given text. * * @param {string} text - The input text where underscores will be replaced. * @returns {string} - The modified text with underscores replaced by spaces. */ static replaceUnderscoreWithSpace(text: string): string { return typeof text === 'string' ? text.replace(/_/g, ' ') : text; } }