From 1097e690702d564cc7578b443d5dbeb27a67ec47 Mon Sep 17 00:00:00 2001 From: Ljcbaby <46277145+ljcbaby@users.noreply.github.com> Date: Fri, 3 Oct 2025 21:52:49 +0800 Subject: [PATCH] fix: " cuase unexpected TEXT but ' not --- frontend/webserver.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/frontend/webserver.go b/frontend/webserver.go index 6b12c5c..3512d92 100644 --- a/frontend/webserver.go +++ b/frontend/webserver.go @@ -19,13 +19,13 @@ import ( var primitiveMap = map[string]string{ "summary": "show protocols", - "detail": "show protocols all \"%s\"", - "route_from_protocol": "show route protocol \"%s\"", - "route_from_protocol_all": "show route protocol \"%s\" all", - "route_from_protocol_primary": "show route protocol \"%s\" primary", - "route_from_protocol_all_primary": "show route protocol \"%s\" all primary", - "route_filtered_from_protocol": "show route filtered protocol \"%s\"", - "route_filtered_from_protocol_all": "show route filtered protocol \"%s\" all", + "detail": "show protocols all \'%s\'", + "route_from_protocol": "show route protocol \'%s\'", + "route_from_protocol_all": "show route protocol \'%s\' all", + "route_from_protocol_primary": "show route protocol \'%s\' primary", + "route_from_protocol_all_primary": "show route protocol \'%s\' all primary", + "route_filtered_from_protocol": "show route filtered protocol \'%s\'", + "route_filtered_from_protocol_all": "show route filtered protocol \'%s\' all", "route_from_origin": "show route where bgp_path.last = %s", "route_from_origin_all": "show route where bgp_path.last = %s all", "route_from_origin_primary": "show route where bgp_path.last = %s primary",