diff --git a/lib/strings.nix b/lib/strings.nix index d3ef748fb71e..328f64cf1b61 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -254,7 +254,7 @@ rec { => false */ hasInfix = infix: content: - builtins.match ".*${escapeRegex infix}.*" content != null; + builtins.match ".*${escapeRegex infix}.*" "${content}" != null; /* Convert a string to a list of characters (i.e. singleton strings). This allows you to, e.g., map a function over each character. However,