Merge pull request #715 from syohex/syohex/yarn-posix

Don't use sed gnu extension, use POSIX syntax
This commit is contained in:
Shohei YOSHIDA authored and GitHub committed 2020-05-09 19:36:37 +09:00
commit 3d6bbc108e
1 file changed
+1 -1
+1 -1
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
}