Browse Source

Had case sensitive and case insensitive backwards.

master
freesource 24 years ago
parent
commit
acbb8bb20f
  1. 8
      BootRoot/YardBox.pm

8
BootRoot/YardBox.pm

@ -1190,7 +1190,7 @@ sub search {
if ($search_backwards->active) { if ($search_backwards->active) {
if (!$offset) { if (!$offset) {
if($case_sensitive->active) { if(!$case_sensitive->active) {
my ($tmp_ct, $tmp_k); my ($tmp_ct, $tmp_k);
($tmp_ct = $changed_text_from_template) =~ tr/A-Z/a-z/; ($tmp_ct = $changed_text_from_template) =~ tr/A-Z/a-z/;
($tmp_k = $keywords) =~ tr/A-Z/a-z/; ($tmp_k = $keywords) =~ tr/A-Z/a-z/;
@ -1211,7 +1211,7 @@ sub search {
else { else {
$offset = $offset - 1; $offset = $offset - 1;
if($case_sensitive->active) { if(!$case_sensitive->active) {
my ($tmp_ct, $tmp_k); my ($tmp_ct, $tmp_k);
($tmp_ct = $changed_text_from_template) =~ tr/A-Z/a-z/; ($tmp_ct = $changed_text_from_template) =~ tr/A-Z/a-z/;
($tmp_k = $keywords) =~ tr/A-Z/a-z/; ($tmp_k = $keywords) =~ tr/A-Z/a-z/;
@ -1239,7 +1239,7 @@ sub search {
# index # index
else { else {
if (!$offset) { if (!$offset) {
if($case_sensitive->active) { if(!$case_sensitive->active) {
my ($tmp_ct, $tmp_k); my ($tmp_ct, $tmp_k);
($tmp_ct = $changed_text_from_template) =~ tr/A-Z/a-z/; ($tmp_ct = $changed_text_from_template) =~ tr/A-Z/a-z/;
($tmp_k = $keywords) =~ tr/A-Z/a-z/; ($tmp_k = $keywords) =~ tr/A-Z/a-z/;
@ -1264,7 +1264,7 @@ sub search {
else { else {
$offset = $offset + 1; $offset = $offset + 1;
if($case_sensitive->active) { if(!$case_sensitive->active) {
my ($tmp_ct, $tmp_k); my ($tmp_ct, $tmp_k);
($tmp_ct = $changed_text_from_template) =~ tr/A-Z/a-z/; ($tmp_ct = $changed_text_from_template) =~ tr/A-Z/a-z/;
($tmp_k = $keywords) =~ tr/A-Z/a-z/; ($tmp_k = $keywords) =~ tr/A-Z/a-z/;

Loading…
Cancel
Save