mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-27 06:19:25 +01:00
Added link to browsable standard; search now case-insensitive and within section title
This commit is contained in:
parent
b4b0ade05b
commit
b3ae27cb0c
@ -127,7 +127,7 @@ while($text =~ m/^\s{4}(\d+\.[0-9\.]*)/msg) {
|
|||||||
|
|
||||||
if(length $search) {
|
if(length $search) {
|
||||||
eval {
|
eval {
|
||||||
if($t =~ m/\b$search/ms) {
|
if($t =~ m/\b$search/mis or $section_title =~ m/\b$search/mis) {
|
||||||
$matches++;
|
$matches++;
|
||||||
if($matches >= $match) {
|
if($matches >= $match) {
|
||||||
if($list_only) {
|
if($list_only) {
|
||||||
@ -197,8 +197,12 @@ if($matches > 1 and not $list_only) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($comma eq "") {
|
if($comma eq "") {
|
||||||
|
=cut
|
||||||
print $found_section;
|
print $found_section;
|
||||||
print "p" . $found_paragraph if $paragraph_specified;
|
print "p" . $found_paragraph if $paragraph_specified;
|
||||||
|
=cut
|
||||||
|
print "http://blackshell.com/~msmud/cstd.html\#$found_section";
|
||||||
|
print "p" . $found_paragraph if $paragraph_specified;
|
||||||
print " : ";
|
print " : ";
|
||||||
print "[", $found_section_title, "] " if length $found_section_title;
|
print "[", $found_section_title, "] " if length $found_section_title;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user