[Groonga-commit] groonga/fluent-plugin-droonga at ae51ea7 [master] Simplify regexp

Back to archive index

YUKI Hiroshi null+****@clear*****
Wed May 29 15:06:41 JST 2013


YUKI Hiroshi	2013-05-29 15:06:41 +0900 (Wed, 29 May 2013)

  New Revision: ae51ea7b88619875923011906b82ab95acd9c1eb
  https://github.com/groonga/fluent-plugin-droonga/commit/ae51ea7b88619875923011906b82ab95acd9c1eb

  Message:
    Simplify regexp

  Modified files:
    lib/droonga/plugin/handler_search.rb

  Modified: lib/droonga/plugin/handler_search.rb (+2 -2)
===================================================================
--- lib/droonga/plugin/handler_search.rb    2013-05-29 14:48:57 +0900 (879f22b)
+++ lib/droonga/plugin/handler_search.rb    2013-05-29 15:06:41 +0900 (36d9b2d)
@@ -268,8 +268,8 @@ module Droonga
         end
       end
 
-      STATIC_INTEGER_VALUE_PATTERN = /\A[-+]?[\d]+\z/.freeze
-      STATIC_FLOAT_VALUE_PATTERN = /\A[-+]?[\d]*\.[\d]+\z/.freeze
+      STATIC_INTEGER_VALUE_PATTERN = /\A[-+]?\d+\z/.freeze
+      STATIC_FLOAT_VALUE_PATTERN = /\A[-+]?\d*\.\d+\z/.freeze
       STATIC_STRING_VALUE_PATTERN = /\A("[^"]*"|'[^']*')\z/.freeze
 
       def normalize_target_attributes(attributes)
-------------- next part --------------
HTML����������������������������...
Download 



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