From a44be5f1aee2291719efb5745219958c65a8a7f3 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Wed, 29 Jun 2011 23:57:01 +0000 Subject: [PATCH] better solution to cleaning keywords git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@212 2a923420-c742-0410-a762-8d5b09965624 --- var/mongoose/lib/epg_search | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/var/mongoose/lib/epg_search b/var/mongoose/lib/epg_search index 5b17fce..dcc6e08 100755 --- a/var/mongoose/lib/epg_search +++ b/var/mongoose/lib/epg_search @@ -79,8 +79,8 @@ if {[llength $res] > 0} { puts "Keyword Searches" foreach keyword $res { set kw [string range [lindex $keyword 1] 1 end] - # Attempt to clean the keyword string. - regsub -all {[\000-\037]} $kw "" kw + # Clean the keyword string. + regexp -nocase {^(\w+)} $kw kw puts "$kw " }