Fix regex

This commit is contained in:
rxdn 2022-06-18 21:05:15 +01:00
parent 107f13ecf6
commit 64c9cad985

View File

@ -25,7 +25,7 @@ const freePanelLimit = 3
var ( var (
placeholderPattern = regexp.MustCompile(`%(\w+)%`) placeholderPattern = regexp.MustCompile(`%(\w+)%`)
channelNamePattern = regexp.MustCompile(`^[\w\d-_\u00a9\u00ae\u2000-\u3300\ud83c\ud000-\udfff\ud83d\ud000-\udfff\ud83e\ud000-\udfff]+$`) channelNamePattern = regexp.MustCompile(`^[\w\d-_\x{00a9}\x{00ae}\x{2000}-\x{3300}\x{d83c}\x{d000}-\x{dfff}\x{d83d}\x{d000}-\x{dfff}\x{d83e}\x{d000}-\x{dfff}]+$`)
) )
type panelBody struct { type panelBody struct {