From fdb6520250a420ffb3fa3c56940c3af5a5af02c5 Mon Sep 17 00:00:00 2001 From: "Stephen M. Coakley" Date: Mon, 26 Jun 2017 10:33:41 -0500 Subject: [PATCH] Compatibility with BSD sed --- pkg/omf/functions/cli/omf.cli.help.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/omf/functions/cli/omf.cli.help.fish b/pkg/omf/functions/cli/omf.cli.help.fish index 6d62fc2..cf9ea86 100644 --- a/pkg/omf/functions/cli/omf.cli.help.fish +++ b/pkg/omf/functions/cli/omf.cli.help.fish @@ -24,8 +24,8 @@ function omf.cli.help s/<<[^,]*,\([^>]*\)>>/\1/g # Definition lists. - s/^\(\S.*\)::\(..*\)/\1\2/g - s/^\(\S.*\)::/$b\1$r/g + s/^\([^[:space:]].*\)::\(..*\)/\1\2/g + s/^\([^[:space:]].*\)::/$b\1$r/g # Nice bullets for unordered lists. s/^[*-] /ยท /g @@ -47,7 +47,7 @@ function omf.cli.help s/_\([^_]*\)_/$u\1$r/g # Underline links. - s/\w\w*:\S\S*/$u&$r/g + s/[[:alnum:]_][[:alnum:]_]*:[^[:space:]][^[:space:]]*/$u&$r/g # Underline variable names in angle brackets. s/<[^>]*>/$u&$r/g