mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-10-01 09:14:34 +00:00
parenthesize regex
This commit is contained in:
+1
-1
@@ -231,7 +231,7 @@ _p9k_segment_in_use() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function _p9k_parse_ip() {
|
function _p9k_parse_ip() {
|
||||||
local iface_regex="^${1:-.*}\$" iface ip
|
local iface_regex="^(${1:-.*})\$" iface ip
|
||||||
for iface ip in "${(@kv)_p9k_iface}"; do
|
for iface ip in "${(@kv)_p9k_iface}"; do
|
||||||
if [[ $iface =~ $iface_regex ]]; then
|
if [[ $iface =~ $iface_regex ]]; then
|
||||||
_p9k_ret=$ip
|
_p9k_ret=$ip
|
||||||
|
|||||||
Reference in New Issue
Block a user