(value string)
| 81 | } |
| 82 | |
| 83 | func ParsePlainString(value string) (bool, string, string) { |
| 84 | if urlRegex.MatchString(value) { |
| 85 | return false, value, "cannot contain URLs" |
| 86 | } |
| 87 | |
| 88 | if emailRegex.MatchString(value) { |
| 89 | return false, value, "cannot contain email addresses" |
| 90 | } |
| 91 | |
| 92 | if emojiRegex.MatchString(value) { |
| 93 | return false, value, "cannot contain emoji characters" |
| 94 | } |
| 95 | |
| 96 | return true, value, "" |
| 97 | } |
| 98 | |
| 99 | func ParseAccountURL(value string) (bool, string, string) { |
| 100 | if !accountURLRegex.Match([]byte(value)) { |
nothing calls this directly
no outgoing calls
no test coverage detected