I seem to remember seeing some regex-related changes in 1.12 so this might no longer be an issue, but I want to capture it in case it is. If I fire up nix-repl on 1.11.x on Linux and Darwin and run
builtins.match "^((|\..*)\.sw[a-z]|.*~)$" "foo"
Darwin will complain that error: compiling pattern ‘^((|..*).sw[a-z]|.*~)$’: empty (sub)expression, whereas Linux will return null.
I seem to remember seeing some regex-related changes in 1.12 so this might no longer be an issue, but I want to capture it in case it is. If I fire up
nix-replon 1.11.x on Linux and Darwin and runDarwin will complain that
error: compiling pattern ‘^((|..*).sw[a-z]|.*~)$’: empty (sub)expression, whereas Linux will returnnull.