From 98a9cba0505689cf9a63411521038e340bffa1fc Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Tue, 8 Jan 2013 14:59:33 -0500 Subject: -mozconfig: strip trailing comments for _line --- moz-normalize-mozconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'moz-normalize-mozconfig') diff --git a/moz-normalize-mozconfig b/moz-normalize-mozconfig index 92a848d..07a427e 100755 --- a/moz-normalize-mozconfig +++ b/moz-normalize-mozconfig @@ -10,7 +10,7 @@ urlencode() { # class-id:line classify-lines() { while read line; do - _line="$(printf '%s' "$line"|sed -r 's/^#(\S)/\1/')" + _line="$(printf '%s' "$line"|sed -r -e 's/^#(\S)/\1/' -e 's/ #.*//')" class='other' case "$_line" in ac_add_options\ --enable-application=*) class=setapp;; -- cgit v1.2.3-2-g168b