Little useful note and began work on v0.2.0

This commit is contained in:
Azareal 2018-09-19 16:41:36 +10:00
parent 225a2cc8a1
commit 335fe4fdbe
2 changed files with 2 additions and 2 deletions

View File

@ -402,6 +402,7 @@ func peekMatch(cur int, phrase string, runes []rune) bool {
// TODO: We need a lot more hooks here. E.g. To add custom media types and handlers.
// TODO: Use templates to reduce the amount of boilerplate?
func ParseMessage(msg string, sectionID int, sectionType string /*, user User*/) string {
// TODO: Word boundary detection for these to avoid mangling code
msg = strings.Replace(msg, ":)", "😀", -1)
msg = strings.Replace(msg, ":(", "😞", -1)
msg = strings.Replace(msg, ":D", "😃", -1)
@ -410,7 +411,6 @@ func ParseMessage(msg string, sectionID int, sectionType string /*, user User*/)
msg = strings.Replace(msg, ":p", "😛", -1)
msg = strings.Replace(msg, ":o", "😲", -1)
msg = strings.Replace(msg, ";)", "😉", -1)
//msg = url_reg.ReplaceAllString(msg,"<a href=\"$2$3//$4\" rel=\"nofollow\">$2$3//$4</a>")
// Word filter list. E.g. Swear words and other things the admins don't like
wordFilters, err := WordFilters.GetAll()

View File

@ -29,7 +29,7 @@ import (
"github.com/pkg/errors"
)
var version = common.Version{Major: 0, Minor: 1, Patch: 0}
var version = common.Version{Major: 0, Minor: 2, Patch: 0, Tag: "dev"}
var router *GenRouter
var logWriter = io.MultiWriter(os.Stderr)