Don't use sed gnu extension, use POSIX syntax

This commit is contained in:
Shohei YOSHIDA 2020-05-09 19:22:56 +09:00
parent a500a4e5d2
commit 73505e4768
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ _yarn_add_files() {
}
_yarn_workspaces() {
local -a workspaces=(${(@f)$(yarn workspaces info |sed -n -r -e 's/^ "([^"]+)": \{/\1/p')})
local -a workspaces=(${(@f)$(yarn workspaces info |sed -n -e 's/^ "\([^"]*\)": {/\1/p')})
_describe 'workspace' workspaces
}