Ask a Question related to Ruby, Design and Development.
-
Re: Error in REXML<[email protected]e.net> Hi --
On Tue, 28 Oct 2003, Daniel Carrera wrote:
The line looks OK to me; my guess is that it's matching part of> Can anyone confirm this? :
>
> $ ruby -v
> ruby 1.8.0 (2003-08-04) [sparc-solaris2.8]
> $ ruby -rrexml/document -e ""
> /home3/dcarrera/lib/ruby/site_ruby/1.8/rexml/doctype.rb:178: warning:
> regexp has `]' without escape
>
>
> Indeed, if you look at the source, line 178 has:
> -----------
> begin
> ...
> source.match(/\s*]\s*>/um, true) <--------
> ^^^^^^^^^
> rescue ParseException
> -----------
>
> That doesn't look right to me. On the other hand, I did have rexml
> working before I reinstalled Ruby, and if this were a but it would have
> been noticed.
>
> Can anyone shed any light on this? Is this line correct? (it must be).
> If so, does anyone know what might be wrong with my system?
"<!DOCTYPE ... [ ... ]>" or something similar that has the "]>"
sequence.
The warning (not error :-) message is new in 1.8.0, so I guess anyone
who's put a literal ] in a regex should probably now escape it.
David
--
David Alan Black
home: [email][email protected][/email]
work: [email][email protected][/email]
Web: [url]http://pirate.shu.edu/~blackdav[/url]
[email protected] Guest
-
learning the "Ruby way"<[email protected]e.net><[email protected]e.net>
Hi -- On Fri, 21 Nov 2003 [email protected] wrote: Just to clarify: "This" means my solution, not your question :-) David -
"stereotyping" (was: Strong Typing (Managing metadata aboutattribute types))<[email protected]e.net><[email protected]e.net>
Hi -- On Tue, 18 Nov 2003, Thien Vuong wrote: Class name checking doesn't ensure needed behavior. Actually, let me say first that while I... -
rexml 2.5.8 warning<[email protected]ne.net>
Hi -- On Sat, 1 Nov 2003, Kurt V. Hindenburg wrote: See thread starting at <http://www.ruby-talk.org/84500>. David -
Prolly a simple question<[email protected]ne.net><[email protected]ne.net>
Whoops, that was a message from March I just replied to. We're getting another wave of old messages. David -- David Alan Black home:... -
Enumerable#inject is surprising me...<[email protected]ne.net><[email protected]ne.net>
On Thu, 9 Oct 2003 [email protected] wrote: Whoops, I mean how it gets into the second one at all. David -- David Alan Black




