MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / trimControlChars

Function trimControlChars

out/cli.cjs:3958–3972  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

3956 return result;
3957 }
3958 function trimControlChars(string) {
3959 let start = 0;
3960 let end = string.length;
3961 for (; start < end; ++start) {
3962 if (string.charCodeAt(start) > 32) {
3963 break;
3964 }
3965 }
3966 for (; end > start; --end) {
3967 if (string.charCodeAt(end - 1) > 32) {
3968 break;
3969 }
3970 }
3971 return string.substring(start, end);
3972 }
3973 function trimTabAndNewline(url2) {
3974 return url2.replace(/\u0009|\u000A|\u000D/ug, "");
3975 }

Callers 1

URLStateMachineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…