Fix parsing of regexp options like --override=bin|man
commitf0ec80f3a4fc588944a6ad070241d4aa4bbf188d
authorAdam Spiers <stow@adamspiers.org>
Sat, 15 Jun 2024 12:03:07 +0000 (15 13:03 +0100)
committerAdam Spiers <stow@adamspiers.org>
Sat, 15 Jun 2024 12:03:07 +0000 (15 13:03 +0100)
treee45e4c442836ecc027956983a75c7b5fd5a1dbde
parentd760f96dea0e760a821e620202e82d8facc6ca05
Fix parsing of regexp options like --override=bin|man

Previously the \A and \z anchoring for --ignore / --override / --defer
was being applied without wrapping the user-specified regexp in
parentheses, so if it was something like bin|man then the anchor would
only apply to one half of those two paths.  So add parentheses, and
also change from qr() to qr{} syntax to visually differentiate between
regexp boundaries and parentheses inside the regexp.
bin/stow.in
t/cli_options.t
t/rc_options.t