[whatwg] Web Forms 2.0 Substantial - Section 2
Ian Hickson
ian at hixie.ch
Wed Jun 23 09:52:49 PDT 2004
On Wed, 23 Jun 2004, Hallvord Reiar Michaelsen Steen wrote:
>
> But the spec already says
> "The pattern must be compiled with the multiline flag enabled (see
> ECMA262, section 15.10.7.4)."
>
> This means that periods DO match newlines.
No, it doesn't. See 15.10.2.8, under "Atom :: .", and note the lack of a
mention of the "multiline" flag.
> javascript:alert(/^.*$/m.test('multiple \n\n lines \n\n here'))
Hrm, odd. This indeed says "true" in Opera, Moz and IE.
Is this an item for the errata? I'll contact Brendan.
--
Ian Hickson U+1047E )\._.,--....,'``. fL
http://ln.hixie.ch/ U+263A /, _.. \ _\ ;`._ ,.
Things that are impossible just take longer. `._.-(,_..'--(,_..'`-.;.'
More information about the whatwg
mailing list