From 104dc9b71ddf1037f9fca93a329ecddacee7e544 Mon Sep 17 00:00:00 2001 From: ManueLocal Date: Wed, 4 Dec 2024 11:05:15 +0100 Subject: [PATCH] updated: grammer.pegjs to include scope_identifier in the IPv6 expression --- src/grammar/pegjs/src/grammar.pegjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/grammar/pegjs/src/grammar.pegjs b/src/grammar/pegjs/src/grammar.pegjs index 3c1f564b6..8b8c6d538 100644 --- a/src/grammar/pegjs/src/grammar.pegjs +++ b/src/grammar/pegjs/src/grammar.pegjs @@ -177,8 +177,9 @@ IPv6address = ( h16 ":" h16 ":" h16 ":" h16 ":" h16 ":" h16 ":" ls32 h16 = HEXDIG HEXDIG? HEXDIG? HEXDIG? -ls32 = ( h16 ":" h16 ) / IPv4address +ls32 = ( h16 ":" h16 (scope_identifier)? ) / IPv4address +scope_identifier = "%" (alphanum)+ IPv4address = dec_octet "." dec_octet "." dec_octet "." dec_octet { options = options || { data: {}};