diff options
-rw-r--r-- | lib/strings.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strings.nix b/lib/strings.nix index 3a61f5be68b6..45d3bcbb440d 100644 --- a/lib/strings.nix +++ b/lib/strings.nix @@ -757,7 +757,7 @@ rec { => "-nix-store-2g75chlbpxlrqn15zlby2dfh8hr9qwbk-hello-2.10" */ sanitizeDerivationName = - let okRegex = match "^[[:alnum:]+_?=-][[:alnum:]+._?=-]*$"; + let okRegex = match "[[:alnum:]+_?=-][[:alnum:]+._?=-]*"; in string: # First detect the common case of already valid strings, to speed those up |