From: Mike Frysinger Date: Sat, 16 Mar 2013 15:38:53 +0000 (-0400) Subject: er-close: normalize names like: Bill "blah" Name X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c32aa3079f11e2524cbda0afcb7ce1ada202475d;p=home.git er-close: normalize names like: Bill "blah" Name --- 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}