MCPcopy Create free account
hub / github.com/play-co/devkit / strip

Function strip

src/util/gitClient/functions.js:20–22  ·  view source on GitHub ↗

* remove leading / trailing whitespace from a string

(str)

Source from the content-addressed store, hash-verified

18 */
19
20function strip(str) {
21 return str.replace(/^\s+|\s+$/g, '');
22}
23
24/**
25 * Filter local tags which are valid semvers and return the highest version

Callers 1

functions.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…