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

Function formatField

scripts/replace-header.js:110–116  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

108 $.done(result)
109 })
110function formatField(str) {
111 const arr = str.split('-')
112 for (var i = 0; i < arr.length; i++) {
113 arr[i] = arr[i].charAt(0).toUpperCase() + arr[i].slice(1)
114 }
115 return arr.join('-')
116}
117function getRegexp(re_str) {
118 let regParts = re_str.match(/^\/(.*?)\/([gims]*)$/)
119 if (regParts) {

Callers 1

replace-header.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected