[Groonga-commit] droonga/droonga-engine at e2a8f4d [master] Simplify regexps

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Sep 18 13:44:29 JST 2014


YUKI Hiroshi	2014-09-18 13:44:29 +0900 (Thu, 18 Sep 2014)

  New Revision: e2a8f4dd26c6b3599ceb79f47909372984a326b1
  https://github.com/droonga/droonga-engine/commit/e2a8f4dd26c6b3599ceb79f47909372984a326b1

  Message:
    Simplify regexps

  Modified files:
    bin/droonga-engine-configure

  Modified: bin/droonga-engine-configure (+2 -2)
===================================================================
--- bin/droonga-engine-configure    2014-09-18 13:41:57 +0900 (faf908f)
+++ bin/droonga-engine-configure    2014-09-18 13:44:29 +0900 (e167514)
@@ -86,9 +86,9 @@ def confirmed?(message)
     print "#{message} (y/N): "
     response = gets
     case response
-      when /^[yY]/
+      when /^y/i
         return true
-      when /^[nN]/, /^$/
+      when /^n/i, /^$/
         return false
     end
   end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index