summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Cornellà <marc@mcornella.com>2024-07-27 14:28:24 +0200
committerMarc Cornellà <marc@mcornella.com>2024-07-27 14:29:08 +0200
commitf70e6916a1c9aca77e7bd1b976a3f6100752f0a5 (patch)
tree726a23bceaa97ee20a0aa00e2da769026a3b5054
parent5e957cdc1653dbdc15d48ef316917d80778da4e8 (diff)
downloadzsh-f70e6916a1c9aca77e7bd1b976a3f6100752f0a5.tar.gz
zsh-f70e6916a1c9aca77e7bd1b976a3f6100752f0a5.tar.bz2
zsh-f70e6916a1c9aca77e7bd1b976a3f6100752f0a5.zip
fix(lib): turn off `rematchpcre` option in `omz_urlencode` (#12388)
Fixes #12388
-rw-r--r--lib/functions.zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/functions.zsh b/lib/functions.zsh
index f5c671f9c..2e667332e 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -160,6 +160,8 @@ zmodload zsh/langinfo
# -P causes spaces to be encoded as '%20' instead of '+'
function omz_urlencode() {
emulate -L zsh
+ setopt norematchpcre
+
local -a opts
zparseopts -D -E -a opts r m P