mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-12-05 18:12:46 +00:00
b966d3b157
Bumps [github.com/gin-gonic/gin](https://github.com/gin-gonic/gin) from 1.8.1 to 1.8.2. - [Release notes](https://github.com/gin-gonic/gin/releases) - [Changelog](https://github.com/gin-gonic/gin/blob/master/CHANGELOG.md) - [Commits](https://github.com/gin-gonic/gin/compare/v1.8.1...v1.8.2) --- updated-dependencies: - dependency-name: github.com/gin-gonic/gin dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
43 lines
592 B
Go
43 lines
592 B
Go
package characters
|
|
|
|
var invalidAsciiTable = [256]bool{
|
|
0x00: true,
|
|
0x01: true,
|
|
0x02: true,
|
|
0x03: true,
|
|
0x04: true,
|
|
0x05: true,
|
|
0x06: true,
|
|
0x07: true,
|
|
0x08: true,
|
|
// 0x09 TAB
|
|
// 0x0A LF
|
|
0x0B: true,
|
|
0x0C: true,
|
|
// 0x0D CR
|
|
0x0E: true,
|
|
0x0F: true,
|
|
0x10: true,
|
|
0x11: true,
|
|
0x12: true,
|
|
0x13: true,
|
|
0x14: true,
|
|
0x15: true,
|
|
0x16: true,
|
|
0x17: true,
|
|
0x18: true,
|
|
0x19: true,
|
|
0x1A: true,
|
|
0x1B: true,
|
|
0x1C: true,
|
|
0x1D: true,
|
|
0x1E: true,
|
|
0x1F: true,
|
|
// 0x20 - 0x7E Printable ASCII characters
|
|
0x7F: true,
|
|
}
|
|
|
|
func InvalidAscii(b byte) bool {
|
|
return invalidAsciiTable[b]
|
|
}
|