1
0
mirror of https://github.com/strongdm/comply synced 2025-12-14 10:13:57 +00:00

go.mod: update gitlab dep to v0.30.1

Releases after github.com/xanzy/go-gitlab@v0.31.0 introduce breaking
changes to the NewClient call.

Addresses #94
This commit is contained in:
Justin McCarthy
2020-09-14 11:31:56 -07:00
parent 8baf787ed7
commit 7468711b3b
978 changed files with 160705 additions and 82515 deletions

1
vendor/github.com/lunixbochs/vtclean/go.mod generated vendored Normal file
View File

@@ -0,0 +1 @@
module github.com/lunixbochs/vtclean

View File

@@ -1,14 +0,0 @@
this is the source definitions for the scary escape code regex
# from tests in Terminal.app, this regex should cover all basic \e[ and \e] cases
^([\[\]]([\d\?]+)?(;[\d\?]+)*)?.
# this catches any case the above does not
# make sure to not include any special characters the main regex finds (like ?)
\[[^a-zA-Z0-9@\?]+.
# esc + paren + any single char
[\(\)].
# didn't re-check this one (not included)
[\[K]\d+;\d+

View File

@@ -6,8 +6,13 @@ import (
"strconv"
)
// see regex.txt for a slightly separated version of this regex
var vt100re = regexp.MustCompile(`^\033([\[\]]([\d\?]+)?(;[\d\?]+)*)?(.)`)
// regex based on ECMA-48:
// 1. optional:
// one of [ or ]
// any amount of 0x30-0x3f
// any amount of 0x20-0x2f
// 3. exactly one 0x40-0x7e
var vt100re = regexp.MustCompile(`^\033([\[\]]([0-9:;<=>\?]*)([!"#$%&'()*+,\-./]*))?([@A-Z\[\]^_\x60a-z{|}~])`)
var vt100exc = regexp.MustCompile(`^\033(\[[^a-zA-Z0-9@\?]+|[\(\)]).`)
// this is to handle the RGB escape generated by `tput initc 1 500 500 500`
@@ -21,6 +26,8 @@ func Clean(line string, color bool) string {
for i := 0; i < len(lineb); {
c := lineb[i]
switch c {
case '\r':
edit.MoveAbs(0)
case '\b':
edit.Move(-1)
case '\033':
@@ -74,7 +81,7 @@ func Clean(line string, color bool) string {
}
continue
default:
if c == '\n' || c >= ' ' {
if c == '\n' || c == '\t' || c >= ' ' {
edit.Write([]byte{c})
}
}