[Hiki-cvs 1436] [984] * hiki/docdiff/encoding/ja_utf8.rb: quote regular expressions

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 8月 17日 (月) 02:44:06 JST


Revision: 984
          http://sourceforge.jp/projects/hiki/svn/view?view=rev&revision=984
Author:   fdiary
Date:     2009-08-17 02:44:06 +0900 (Mon, 17 Aug 2009)

Log Message:
-----------
	* hiki/docdiff/encoding/ja_utf8.rb: quote regular expressions
	correctly.

Modified Paths:
--------------
    hiki/trunk/ChangeLog
    hiki/trunk/hiki/docdiff/encoding/ja_utf8.rb

Modified: hiki/trunk/ChangeLog
===================================================================
--- hiki/trunk/ChangeLog	2009-08-16 16:54:54 UTC (rev 983)
+++ hiki/trunk/ChangeLog	2009-08-16 17:44:06 UTC (rev 984)
@@ -1,4 +1,7 @@
 2009-08-16  Kazuhiko  <kazuh****@fdiar*****>
+	* hiki/docdiff/encoding/ja_utf8.rb: quote regular expressions
+	correctly.
+
 	* style/default/hikidoc.rb: use recent hikidoc.rb (rev.116).
 
 2009-08-15  Kazuhiko  <kazuh****@fdiar*****>

Modified: hiki/trunk/hiki/docdiff/encoding/ja_utf8.rb
===================================================================
--- hiki/trunk/hiki/docdiff/encoding/ja_utf8.rb	2009-08-16 16:54:54 UTC (rev 983)
+++ hiki/trunk/hiki/docdiff/encoding/ja_utf8.rb	2009-08-16 17:44:06 UTC (rev 984)
@@ -1,3 +1,4 @@
+# -*- coding: utf-8; -*-
 # Japanese UTF-8 encoding module for CharString
 # 2003- Hisashi MORITA
 
@@ -6955,6 +6956,8 @@
     PUNCT.replace(Regexp.quote(PUNCT)) # kludge to avoid warning "character class has `[' without escape"
     PRINT.replace(Regexp.quote(PRINT)) # kludge to avoid warning "character class has `[' without escape"
     GRAPH.replace(Regexp.quote(GRAPH)) # kludge to avoid warning "character class has `[' without escape"
+    JA_PRINT.replace(Regexp.quote(JA_PRINT)) # kludge to avoid warning "character class has `[' without escape"
+    JA_GRAPH.replace(Regexp.quote(JA_GRAPH)) # kludge to avoid warning "character class has `[' without escape"
 
     WORD_REGEXP_SRC = ["(?:[#{GRAPH}]+[#{BLANK}]?)", 
                        "|(?:[#{SPACE}]+)", 




Hiki-cvs メーリングリストの案内
Back to archive index