MCPcopy
hub / github.com/wavetermdev/waveterm / goBackWS

Function goBackWS

pkg/wconfig/settingsconfig.go:433–444  ·  view source on GitHub ↗
(barr []byte, offset int)

Source from the content-addressed store, hash-verified

431}
432
433func goBackWS(barr []byte, offset int) int {
434 if offset >= len(barr) {
435 offset = offset - 1
436 }
437 for i := offset - 1; i >= 0; i-- {
438 if barr[i] == ' ' || barr[i] == '\t' || barr[i] == '\n' || barr[i] == '\r' {
439 continue
440 }
441 return i
442 }
443 return 0
444}
445
446func isTrailingCommaError(barr []byte, offset int) bool {
447 if offset >= len(barr) {

Callers 1

isTrailingCommaErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected