Misused Regex Operator Medium

Using '=~' with a glob-like pattern in shell conditionals can lead to unexpected matching behavior. To fix this, use '=' for glob matching or adjust the pattern for proper regex syntax with '=~'.

Detector ID
shell/misused-regex-operator@v1.0
Category
Common Weakness Enumeration (CWE) external icon
-
Tags
-