Browse Source

A bug fix where keywords weren't changing because of the prior effeciency

add-on for tr///.
master
freesource 24 years ago
parent
commit
aff16e7b76
  1. 12
      BootRoot/YardBox.pm

12
BootRoot/YardBox.pm

@ -1204,6 +1204,9 @@ sub search {
tr/A-Z/a-z/;
($tmp_k = $keywords) =~ tr/A-Z/a-z/;
}
if ($tmp_k && $tmp_k ne $keywords) {
($tmp_k = $keywords) =~ tr/A-Z/a-z/;
}
$offset = rindex($tmp_ct, $tmp_k);
}
@ -1228,6 +1231,9 @@ sub search {
tr/A-Z/a-z/;
($tmp_k = $keywords) =~ tr/A-Z/a-z/;
}
if ($tmp_k && $tmp_k ne $keywords) {
($tmp_k = $keywords) =~ tr/A-Z/a-z/;
}
$offset = rindex($tmp_ct, $tmp_k, $offset);
}
else {
@ -1260,6 +1266,9 @@ sub search {
tr/A-Z/a-z/;
($tmp_k = $keywords) =~ tr/A-Z/a-z/;
}
if ($tmp_k && $tmp_k ne $keywords) {
($tmp_k = $keywords) =~ tr/A-Z/a-z/;
}
$offset = index($tmp_ct, $tmp_k);
}
else {
@ -1284,6 +1293,9 @@ sub search {
tr/A-Z/a-z/;
($tmp_k = $keywords) =~ tr/A-Z/a-z/;
}
if ($tmp_k && $tmp_k ne $keywords) {
($tmp_k = $keywords) =~ tr/A-Z/a-z/;
}
$offset = index($tmp_ct, $tmp_k, $offset);
}
else {

Loading…
Cancel
Save