From 5eb7d9ccefec5f7142d07b5c2772c466b7338505 Mon Sep 17 00:00:00 2001 From: "eric.1iu" Date: Thu, 21 May 2020 16:32:48 +0800 Subject: [PATCH] Updated SC2076 (markdown) --- SC2076.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2076.md b/SC2076.md index 3e65c63..9b47ece 100644 --- a/SC2076.md +++ b/SC2076.md @@ -20,7 +20,7 @@ This also means that the problematic code tries to match literal carets and plus ### Exceptions: -If you do want to match literally just to do a plain substring search, e.g. `[[ $foo =~ "bar" ]]`, you could ignore this message, but consider using a more canonical glob match instead: `[[ $foo = *"bar"* ]]`. +If you do want to match literally just to do a plain substring search, e.g. `[[ $foo =~ "bar" ]]`, you could ignore this message, but consider using a more canonical glob match instead: `[[ $foo == *"bar"* ]]`. ### Compatibility: