From 335fe4fdbe52ed1fd5ecd734e08f24926a46fa62 Mon Sep 17 00:00:00 2001 From: Azareal Date: Wed, 19 Sep 2018 16:41:36 +1000 Subject: [PATCH] Little useful note and began work on v0.2.0 --- common/parser.go | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/common/parser.go b/common/parser.go index 59287749..c4b4806b 100644 --- a/common/parser.go +++ b/common/parser.go @@ -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,"$2$3//$4") // Word filter list. E.g. Swear words and other things the admins don't like wordFilters, err := WordFilters.GetAll() diff --git a/main.go b/main.go index ad6e2a1d..f6fa6b21 100644 --- a/main.go +++ b/main.go @@ -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)