Documentation ¶
Overview ¶
Package parser parses and verifies user-sent post data
Index ¶
- Variables
- func ParseBody(body, board string) (links common.LinkMap, com []common.Command, err error)
- func ParseLine(line, board string) (common.LinkMap, common.Command, error)
- func ParseName(name string) (string, string, error)
- func ParseSubject(s string) (string, error)
- func VerifyPostPassword(s string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // CommandRegexp matches any hash command in a line CommandRegexp = regexp.MustCompile(`^#(flip|\d*d\d+|8ball|pyu|pcount)$`) )
Functions ¶
func ParseSubject ¶
ParseSubject verifies and trims a thread subject string
func VerifyPostPassword ¶
VerifyPostPassword verifies a post password exists does not surpass the maximum allowed length
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.