Little useful note and began work on v0.2.0
This commit is contained in:
parent
225a2cc8a1
commit
335fe4fdbe
|
@ -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: 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?
|
// TODO: Use templates to reduce the amount of boilerplate?
|
||||||
func ParseMessage(msg string, sectionID int, sectionType string /*, user User*/) string {
|
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, ":(", "😞", -1)
|
msg = strings.Replace(msg, ":(", "😞", -1)
|
||||||
msg = strings.Replace(msg, ":D", "😃", -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, ":p", "😛", -1)
|
||||||
msg = strings.Replace(msg, ":o", "😲", -1)
|
msg = strings.Replace(msg, ":o", "😲", -1)
|
||||||
msg = strings.Replace(msg, ";)", "😉", -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
|
// Word filter list. E.g. Swear words and other things the admins don't like
|
||||||
wordFilters, err := WordFilters.GetAll()
|
wordFilters, err := WordFilters.GetAll()
|
||||||
|
|
2
main.go
2
main.go
|
@ -29,7 +29,7 @@ import (
|
||||||
"github.com/pkg/errors"
|
"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 router *GenRouter
|
||||||
var logWriter = io.MultiWriter(os.Stderr)
|
var logWriter = io.MultiWriter(os.Stderr)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue