diff --git a/frontend/templateHelper.go b/frontend/templateHelper.go
index f2245a3..04be4a4 100644
--- a/frontend/templateHelper.go
+++ b/frontend/templateHelper.go
@@ -67,10 +67,10 @@ func smartFormatter(s string) string {
for _, line := range strings.Split(s, "\n") {
var lineFormatted string
if strings.HasPrefix(strings.TrimSpace(line), "BGP.as_path:") || strings.HasPrefix(strings.TrimSpace(line), "Neighbor AS:") || strings.HasPrefix(strings.TrimSpace(line), "Local AS:") {
- lineFormatted = regexp.MustCompile(`(\d+)`).ReplaceAllString(line, `${1}`)
+ lineFormatted = regexp.MustCompile(`(\d+)`).ReplaceAllString(line, `${1}`)
} else {
lineFormatted = regexp.MustCompile(`([a-zA-Z0-9\-]*\.([a-zA-Z]{2,3}){1,2})(\s|$)`).ReplaceAllString(line, `${1}${3}`)
- lineFormatted = regexp.MustCompile(`\[AS(\d+)`).ReplaceAllString(lineFormatted, `[AS${1}`)
+ lineFormatted = regexp.MustCompile(`\[AS(\d+)`).ReplaceAllString(lineFormatted, `[AS${1}`)
lineFormatted = regexp.MustCompile(`(\d+\.\d+\.\d+\.\d+)`).ReplaceAllString(lineFormatted, `${1}`)
lineFormatted = regexp.MustCompile(`(?i)(([a-f\d]{0,4}:){3,10}[a-f\d]{0,4})`).ReplaceAllString(lineFormatted, `${1}`)
}