Skip to content

Commit

Permalink
Fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
dritter committed Feb 22, 2019
1 parent 1ab6a32 commit fef639e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/utilities.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function p9k::parseIp() {
continue
fi
# Check if interface is UP.
if [[ "${interface/${newline}/}" =~ "<([^>]*)>(.*?)inet[ ]+([^ ]*)" ]]; then
if [[ "${interface/${newline}/}" =~ "<([^>]*)>(.*)inet[ ]+([^ ]*)" ]]; then
local ipFound="${match[3]}"
local -a interfaceStates=(${(s:,:)match[1]})
if [[ "${interfaceStates[(r)UP]}" == "UP" ]]; then
Expand Down

0 comments on commit fef639e

Please sign in to comment.