From 37221b772089e5353ea2cf97bf254f7c113eb82a Mon Sep 17 00:00:00 2001 From: romkatv Date: Sat, 9 Nov 2019 17:00:11 +0100 Subject: [PATCH] parenthesize regex --- internal/p10k.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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