[MM-36481] Fix emoji regex to support thumbsup (#17846)

Этот коммит содержится в:
Guillermo Vayá
2021-06-29 19:37:15 +02:00
коммит произвёл GitHub
родитель ec8aaec5ce
Коммит f8fc5190ee
5 изменённых файлов: 90 добавлений и 9 удалений

Просмотреть файл

@@ -438,6 +438,12 @@ func IsValidAlphaNumHyphenUnderscore(s string, withFormat bool) bool {
return validSimpleAlphaNumHyphenUnderscore.MatchString(s)
}
func IsValidAlphaNumHyphenUnderscorePlus(s string) bool {
validSimpleAlphaNumHyphenUnderscorePlus := regexp.MustCompile(`^[a-zA-Z0-9+_-]+$`)
return validSimpleAlphaNumHyphenUnderscorePlus.MatchString(s)
}
func Etag(parts ...interface{}) string {
etag := CurrentVersion