summaryrefslogtreecommitdiffstats
path: root/MDK/Common/String.pm
diff options
context:
space:
mode:
Diffstat (limited to 'MDK/Common/String.pm')
-rw-r--r--MDK/Common/String.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/MDK/Common/String.pm b/MDK/Common/String.pm
index 8ea1c3c..b5a588c 100644
--- a/MDK/Common/String.pm
+++ b/MDK/Common/String.pm
@@ -75,10 +75,10 @@ sub bestMatchSentence {
foreach (@_) {
my $count = 0;
foreach my $e (@s) {
- $count+= length ($e) if /^$e$/;
- $count+= length ($e) if /^$e$/i;
- $count+= length ($e) if /$e/;
- $count+= length ($e) if /$e/i;
+ $count += length($e) if /^$e$/;
+ $count += length($e) if /^$e$/i;
+ $count += length($e) if /$e/;
+ $count += length($e) if /$e/i;
}
$best = $count, $bestSentence = $_ if $count > $best;
}