Updated SC2076 (markdown)

eric.1iu
2020-05-21 16:32:48 +08:00
parent 24ecac67d0
commit 5eb7d9ccef

@@ -20,7 +20,7 @@ This also means that the problematic code tries to match literal carets and plus
### Exceptions: ### 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: ### Compatibility: