From c32aa3079f11e2524cbda0afcb7ce1ada202475d Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 16 Mar 2013 11:38:53 -0400 Subject: [PATCH] er-close: normalize names like: Bill "blah" Name --- .bin/er-close | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bin/er-close b/.bin/er-close index ffebefd..2a31ce6 100755 --- a/.bin/er-close +++ b/.bin/er-close @@ -53,7 +53,7 @@ while [[ $# -ne 0 ]] ; do name=$(xml sel -E utf8 -t -m bugzilla/bug/long_desc -v who -n $xml | \ head -${c} | tail -1 | cut -d@ -f1) fi - new_name=$(echo "${name}" | scrub_html | sed 's: (.*)$::') + new_name=$(echo "${name}" | scrub_html | sed 's: [("][^()"]*[)"]::g') if [[ ${new_name} != "${name}" ]] ; then echo "Normalizing '${name}' to '${new_name}'" name=${new_name} -- 2.39.5