]> git.wh0rd.org Git - home.git/commitdiff
er-close: normalize names like: Bill "blah" Name
authorMike Frysinger <vapier@gentoo.org>
Sat, 16 Mar 2013 15:38:53 +0000 (11:38 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 16 Mar 2013 15:38:53 +0000 (11:38 -0400)
.bin/er-close

index ffebefdb5f007e8542e806652a6443fec8dc6dd5..2a31ce6a0148dc01a47e110974cf88c2fd818aa6 100755 (executable)
@@ -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}