func IsValidReactionCode(value string) bool {
	return shortCodeRegEx.MatchString(value)
}
IsValidReactionCode tells whether the given value is a valid emoji shortcode or not
package types
import (
	"regexp"
	authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
)
const (
	ModuleName = "posts"
	RouterKey  = ModuleName
	StoreKey   = ModuleName
	ActionCreatePost         = "create_post"
	ActionEditPost           = "edit_post"
	ActionReportPost         = "report_post"
	ActionAnswerPoll         = "answer_poll"
	ActionAddPostReaction    = "add_post_reaction"
	ActionRemovePostReaction = "remove_post_reaction"
	ActionRegisterReaction   = "register_reaction"
	QuerierRoute             = ModuleName
	QueryPost                = "post"
	QueryPosts               = "posts"
	QueryPostComments        = "post-comments"
	QueryReports             = "reports"
	QueryUserAnswers         = "user-answers"
	QueryRegisteredReactions = "registered-reactions"
	QueryPostReactions       = "post-reactions"
	QueryParams              = "params"
)
var (
	postIDRegEx    = regexp.MustCompile(`^[a-fA-F0-9]{64}$`)
	shortCodeRegEx = regexp.MustCompile(`:[a-z0-9+-]([a-z0-9\d_-])*:`)
	ModuleAddress = authtypes.NewModuleAddress(ModuleName)
	PostStorePrefix                = []byte("post")
	CommentsStorePrefix            = []byte("comments")
	SubspacePostPrefix             = []byte("subspace")
	PostReactionsStorePrefix       = []byte("p_reactions")
	RegisteredReactionsStorePrefix = []byte("r_reactions")
	UserAnswersStorePrefix         = []byte("user_answers")
	ReportsStorePrefix             = []byte("reports")
)
func IsValidPostID(value string) bool {
	return postIDRegEx.MatchString(value)
}