MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / normalizeArgumentsDescLine

Function normalizeArgumentsDescLine

Rewrite-Parser.beta.js:2339–2345  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

2337}
2338
2339function normalizeArgumentsDescLine(str) {
2340 return `${str ?? ''}`
2341 .trim()
2342 .replace(/^[\-*•]+\s*/, '')
2343 .replace(/^\d+\s*[\.\)、]\s*/, '')
2344 .replace(/^[①②③④⑤⑥⑦⑧⑨⑩⓵⓶⓷⓸⓹⓺⓻⓼⓽⓾]\s*/, '')
2345}
2346
2347function parseSurgeArgumentsDescLine(str, keys = []) {
2348 const line = normalizeArgumentsDescLine(str)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected