[Groonga-commit] groonga/gcs [master] Ignore blank line

Back to archive index

null+****@clear***** null+****@clear*****
2012年 8月 9日 (木) 15:36:51 JST


SHIMODA Hiroshi	2012-08-09 15:36:51 +0900 (Thu, 09 Aug 2012)

  New Revision: be91c504bf9ada3410f95b1cff81f681c618194a
  https://github.com/groonga/gcs/commit/be91c504bf9ada3410f95b1cff81f681c618194a

  Log:
    Ignore blank line

  Modified files:
    bin/gcs-configure-text-options

  Modified: bin/gcs-configure-text-options (+1 -0)
===================================================================
--- bin/gcs-configure-text-options    2012-08-09 15:29:33 +0900 (6cc7f5b)
+++ bin/gcs-configure-text-options    2012-08-09 15:36:51 +0900 (893644c)
@@ -60,6 +60,7 @@ if (commandLine.options.printStems) {
     var synonymsCSV = fs.readFileSync(synonymsFile, 'UTF-8');
     var synonyms = {};
     synonymsCSV.split('\n').forEach(function(synonym) {
+      if (!synonym) return;
       var terms = synonym.split(',');
       var key = terms.shift();
       var previousTerms = synonyms[key] || [];
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
Download 



Groonga-commit メーリングリストの案内
Back to archive index