MCPcopy Create free account
hub / github.com/TruthHun/BookStack / ucwords

Function ucwords

static/editor.md/editormd.amd.js:3393–3397  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

3391 */
3392
3393 var ucwords = function (str) {
3394 return str.toLowerCase().replace(/\b(\w)|\s(\w)/g, function($1) {
3395 return $1.toUpperCase();
3396 });
3397 };
3398
3399 editormd.ucwords = editormd.wordsFirstUpperCase = ucwords;
3400

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected