diff --git a/src/_yarn b/src/_yarn index 0d967f2..70ed559 100644 --- a/src/_yarn +++ b/src/_yarn @@ -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 }