From 05d49d7fb921e59529f7105a93b4b7fba51ab525 Mon Sep 17 00:00:00 2001 From: guoguangwu Date: Thu, 1 Feb 2024 09:42:51 +0800 Subject: [PATCH] html/template: replace bytes.Compare call with bytes.Equal Signed-off-by: guoguangwu --- src/html/template/transition.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/html/template/transition.go b/src/html/template/transition.go index d5a05f66da..b897bea542 100644 --- a/src/html/template/transition.go +++ b/src/html/template/transition.go @@ -414,7 +414,7 @@ func tJSDelimited(c context, s []byte) (context, int) { // If " 0 && i+7 <= len(s) && bytes.Compare(bytes.ToLower(s[i-1:i+7]), []byte(" 0 && i+7 <= len(s) && bytes.Equal(bytes.ToLower(s[i-1 : i+7]), []byte("