From 73505e4768a01aa5c1e672b43fdee6771fe9c9e8 Mon Sep 17 00:00:00 2001 From: Shohei YOSHIDA Date: Sat, 9 May 2020 19:22:56 +0900 Subject: [PATCH] Don't use sed gnu extension, use POSIX syntax --- src/_yarn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }