f70e6916a1c9aca77e7bd1b976a3f6100752f0a5
- Author
- Marc Cornellà <marc@mcornella.com>
- Committer
- Marc Cornellà <marc@mcornella.com>
- Date
Message
fix(lib): turn off `rematchpcre` option in `omz_urlencode` (#12388)
Fixes #12388
Diff
1diff --git a/lib/functions.zsh b/lib/functions.zsh
2index f5c671f9c93eebf0fa8b04cffba335cf7c6a5de4..2e667332e956a3b24daf499a5ace0d401bda28ef 100644
3--- a/lib/functions.zsh
4+++ b/lib/functions.zsh
5@@ -160,6 +160,8 @@ zmodload zsh/langinfo
6 # -P causes spaces to be encoded as '%20' instead of '+'
7 function omz_urlencode() {
8 emulate -L zsh
9+ setopt norematchpcre
10+
11 local -a opts
12 zparseopts -D -E -a opts r m P
13