mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 13:59:47 +01:00
Separate search terms with whitespace glob instead of dot
This commit is contained in:
parent
e1e8418e02
commit
25c9c5f868
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user