Kouhei Sutou
null+****@clear*****
Sun Feb 10 21:10:35 JST 2013
Kouhei Sutou 2013-02-10 21:10:35 +0900 (Sun, 10 Feb 2013) New Revision: 410f47d50065bd02280dbcdd4016f7582725aa0c https://github.com/groonga/groonga-normalizer-mysql/commit/410f47d50065bd02280dbcdd4016f7582725aa0c Log: Fix a bug that octet pages/planes aren't detected Modified files: tool/parser.rb Modified: tool/parser.rb (+2 -2) =================================================================== --- tool/parser.rb 2013-02-10 21:09:58 +0900 (b664925) +++ tool/parser.rb 2013-02-10 21:10:35 +0900 (86d56e9) @@ -48,7 +48,7 @@ class CTypeUTF8Parser current_plane = nil input.each_line do |line| case line - when / plane(\d{2})\[\]=/ + when / plane([\da-fA-F]{2})\[\]=/ current_plane = $1.to_i(16) @planes[current_plane] = [] when /^\s* @@ -114,7 +114,7 @@ class CTypeUCAParser in_length = false input.each_line do |line| case line - when / page(\d{3})data\[\]=/ + when / page([\da-fA-F]{3})data\[\]=/ current_page = $1.to_i(16) @pages[current_page] = [] when /^\s*0x(?:[\da-z]+)(?:,\s*0x(?:[\da-z]+))*,?$/i -------------- next part -------------- HTML����������������������������... Télécharger