Page MenuHomeMusing Studio

logger.go
No OneTemporary

logger.go

package logger
import (
"regexp"
)
var postReg = regexp.MustCompile("(.*(/|id=))[a-zA-Z0-9]{12,13}(.*)")
var tokenReg = regexp.MustCompile("(.*t=)[a-zA-Z0-9]{32}(.*)")
func ScrubID(uri string) string {
curStr := postReg.ReplaceAllString(uri, "$1[scrubbed]$3")
curStr = tokenReg.ReplaceAllString(curStr, "$1[scrubbed]$2")
return curStr
}

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 6, 1:56 AM (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3186185

Event Timeline