From 25c9c5f8685e3bb56297746cbb0b721dbca3230f Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 2 May 2010 07:57:27 +0000 Subject: [PATCH] Separate search terms with whitespace glob instead of dot --- modules/cstd.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cstd.pl b/modules/cstd.pl index 67033e29..9e50a23f 100755 --- a/modules/cstd.pl +++ b/modules/cstd.pl @@ -86,7 +86,7 @@ if($list_only) { $result = "Sections containing '$search':\n "; } -$search =~ s/\s/./g; +$search =~ s/\s/\\s+/g; while($text =~ m/^\s{4,6}(\d+\.[0-9\.]*)/msg) { $this_section = $1; @@ -179,7 +179,7 @@ while($text =~ m/^\s{4,6}(\d+\.[0-9\.]*)/msg) { } if(not $found and $comma eq "") { - $search =~ s/\./ /g; + $search =~ s/\\s\+/ /g; if($section_specified) { print "No such text '$search' found within section '$section' in n1256.\n" if length $search; print "No such section '$section' in n1256.\n" if not length $search;