mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[chore]: Bump github.com/microcosm-cc/bluemonday from 1.0.26 to 1.0.27 (#3081)
This commit is contained in:
6
vendor/github.com/gorilla/css/scanner/scanner.go
generated
vendored
6
vendor/github.com/gorilla/css/scanner/scanner.go
generated
vendored
@ -191,7 +191,11 @@ func init() {
|
||||
// New returns a new CSS scanner for the given input.
|
||||
func New(input string) *Scanner {
|
||||
// Normalize newlines.
|
||||
// https://www.w3.org/TR/css-syntax-3/#input-preprocessing
|
||||
input = strings.Replace(input, "\r\n", "\n", -1)
|
||||
input = strings.Replace(input, "\r", "\n", -1)
|
||||
input = strings.Replace(input, "\f", "\n", -1)
|
||||
input = strings.Replace(input, "\u0000", "\ufffd", -1)
|
||||
return &Scanner{
|
||||
input: input,
|
||||
row: 1,
|
||||
@ -232,7 +236,7 @@ func (s *Scanner) Next() *Token {
|
||||
// shortcut before testing multiple regexps.
|
||||
input := s.input[s.pos:]
|
||||
switch input[0] {
|
||||
case '\t', '\n', '\f', '\r', ' ':
|
||||
case '\t', '\n', ' ':
|
||||
// Whitespace.
|
||||
return s.emitToken(TokenS, matchers[TokenS].FindString(input))
|
||||
case '.':
|
||||
|
Reference in New Issue
Block a user