From d312f7de1ba6317d2d0fcb14a97ce9686c65ee70 Mon Sep 17 00:00:00 2001 From: Ljcbaby <46277145+ljcbaby@users.noreply.github.com> Date: Fri, 3 Oct 2025 22:05:32 +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 3512d92..4b32be3 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",