mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
go mod and even more work
This commit is contained in:
1 parent
1c14586cde
commit
e79ffc6ae8
62 files changed
+1003
-8132
No files matched your search
+4
-4
@@ -170,7 +170,7 @@ func (s *Scanner) scanEscape(val bool) {
|
||||
switch ch {
|
||||
case '\\', '"':
|
||||
// ok
|
||||
case 'n', 't':
|
||||
case 'n', 't', 'b':
|
||||
if val {
|
||||
break // ok
|
||||
}
|
||||
@@ -232,10 +232,10 @@ loop:
|
||||
s.next()
|
||||
}
|
||||
if s.ch != '\n' {
|
||||
s.error(offs, "unquoted '\\' must be followed by new line")
|
||||
break loop
|
||||
s.scanEscape(true)
|
||||
} else {
|
||||
s.next()
|
||||
}
|
||||
s.next()
|
||||
case ch == '"':
|
||||
inQuote = !inQuote
|
||||
case ch == '\r':
|
||||
|
||||
Reference in new issue
Block a user