Unquoted Regex Matching Medium

The right-hand side (RHS) of the '=~' operator will cause it to match literally rather than as a regular expression. To avoid this issue, the RHS should be unquoted so that the regular expression metacharacters are interpreted correctly.

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