Первый фоллен на хелле (wildkin) wrote in changelog,
Первый фоллен на хелле
wildkin
changelog

[livejournal] r20975: LJSUP-10951: Return spellcheck to S1

Committer: dnikolaev
LJSUP-10951: Return spellcheck to S1

U   trunk/cgi-bin/LJ/SpellCheck.pm
Modified: trunk/cgi-bin/LJ/SpellCheck.pm
===================================================================
--- trunk/cgi-bin/LJ/SpellCheck.pm	2012-01-24 12:42:29 UTC (rev 20974)
+++ trunk/cgi-bin/LJ/SpellCheck.pm	2012-01-24 12:59:24 UTC (rev 20975)
@@ -140,10 +140,10 @@
     my $handler_misspelled = sub {
         my ($word, $suggestions_str) = @_;
 
-        return unless $suggestions_str;
+        # return unless $suggestions_str;
         return if exists $words{$word};
 
-        my @suggestions = split qr/,\s*/, $suggestions_str;
+        my @suggestions = split qr/,\s*/, ($suggestions_str || '');
         if ($limit && @suggestions > $limit) {
             @suggestions = @suggestions[0 .. $limit - 1];
         }

Tags: dnikolaev, livejournal, pm, wildkin
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments