[#39863] forループの速度 — Masahiro Sato <msato@...>

15 messages 2004/07/20

[#39868] イテレータとfor文 — OOTANI TAKASHI <otn@...5.so-net.ne.jp>

大谷と申します。

31 messages 2004/07/20
[#39886] Re: イテレータとfor文 — Tietew <tietew-ml-ruby-list@...> 2004/07/21

[ruby-list:39909] Re: htreeの高速化

From: MoonWolf <moonwolf@...>
Date: 2004-07-23 13:31:58 UTC
List: ruby-list #39909
MoonWolfです。

tag.rb.patchの作成を間違えました。再度添付します。

Attachments (1)

tag.rb.patch (574 Bytes, text/x-diff)
--- tag.rb.orig	2004-05-06 14:53:34.000000000 +0900
+++ tag.rb	2004-07-23 14:31:36.000000000 +0900
@@ -12,7 +12,7 @@
       init_raw_string
       # normalize xml declaration name and attribute value.
       attributes = attributes.map {|aname, val|
-        if !(Name === aname) && /\A(?:#{Pat::Name}?\{.*\})?#{Pat::Nmtoken}\z/ !~ aname
+        if !(Name === aname) && /\A(?:#{Pat::Name}?\{.*\})?#{Pat::Nmtoken}\z/o !~ aname
           raise HTree::Error, "invalid attribute name: #{aname.inspect}"
         end
         if !(Name === aname) && /\Axmlns(?:\z|:)/ =~ aname

In This Thread