1
0
Fork 0
forked from External/ergo

upgrade ircmsg again

This commit is contained in:
Shivaram Lingamneni 2020-11-17 21:53:14 -05:00
parent 323ef7c642
commit 3f20676f46
4 changed files with 5 additions and 4 deletions

View file

@ -3,7 +3,6 @@
package ircmsg
import "bytes"
import "strings"
var (
@ -39,7 +38,7 @@ func EscapeTagValue(inString string) string {
// so you don't need to call it yourself after parsing a line.
func UnescapeTagValue(inString string) string {
// buf.Len() == 0 is the fastpath where we have not needed to unescape any chars
var buf bytes.Buffer
var buf strings.Builder
remainder := inString
for {
backslashPos := strings.IndexByte(remainder, '\\')