All pastes #1817130 Raw Edit

migemo.rb.patch

public diff v1 · immutable
#1817130 ·published 2010-03-01 14:09 UTC
rendered paste body
--- orig/migemo.rb	2010-03-01 00:26:02.000000000 +0900+++ migemo.rb	2010-02-28 07:55:48.000000000 +0900@@ -226,6 +226,16 @@    def regex     regex = lookup+    concat = RegexConcatnation.new+    @pattern.each_char{|c|+      charclass = RegexCharClass.new+      charclass.push(c)+      charclass.push(c.upcase)+      charclass.push(c.to_fullwidth)+      charclass.push(c.upcase.to_fullwidth)+      concat.push(charclass)+    }+    regex.push(concat)     renderer = RegexRendererFactory.new(regex, @type, @insertion)     renderer.with_paren = @with_paren     string = renderer.render