diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-11-09 19:00:11 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-11-09 19:00:11 +0300 |
commit | 37221b772089e5353ea2cf97bf254f7c113eb82a (patch) | |
tree | 7deaca0e4f21856c1f85a107d2e32645412e3fd2 /internal/p10k.zsh | |
parent | 39b2064a97b8069dd591554460f501884fe0cb1e (diff) |
parenthesize regex
Diffstat (limited to 'internal/p10k.zsh')
-rw-r--r-- | internal/p10k.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh index 2a12f1d2..734cd30f 100644 --- a/internal/p10k.zsh +++ b/internal/p10k.zsh @@ -231,7 +231,7 @@ _p9k_segment_in_use() { } function _p9k_parse_ip() { - local iface_regex="^${1:-.*}\$" iface ip + local iface_regex="^(${1:-.*})\$" iface ip for iface ip in "${(@kv)_p9k_iface}"; do if [[ $iface =~ $iface_regex ]]; then _p9k_ret=$ip |