diff options
author | Joel Hans <joel@netdata.cloud> | 2020-02-06 15:43:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-06 15:43:36 -0700 |
commit | 35909a8c7a13db430c55ee9e168ecce4653d559a (patch) | |
tree | 72c7cc1a25f0eded31962c9f9db39291c9fedac8 | |
parent | d8fedbf3413ae5e4a0a3be8741efe77f1f1ad0c3 (diff) |
Change sed to include parentheses (#7995)
-rwxr-xr-x | docs/generator/checklinks.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/generator/checklinks.sh b/docs/generator/checklinks.sh index ab5964312a..fea613e46a 100755 --- a/docs/generator/checklinks.sh +++ b/docs/generator/checklinks.sh @@ -55,7 +55,7 @@ testinternal () { ilnk=${3} header=${ilnk//-/} dbg " - Searching for \"$header\" in $ifile" - tr -d '[],_.:? `'< "$ifile" | sed -e 's/-//g' -e "s/'//g" | grep -i "^\\#*$header\$" >/dev/null + tr -d '[],_.:? `'< "$ifile" | sed -e 's/-//g' -e "s/'//g" -e "s/(//g" -e "s/)//g" | grep -i "^\\#*$header\$" >/dev/null if [ $? -eq 0 ] ; then dbg " - $ilnk found in $ifile" return 0 |