- From: Ian Hickson <ian@hixie.ch>
- Date: Wed, 23 Jun 2004 16:52:49 +0000 (UTC)
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. `._.-(,_..'--(,_..'`-.;.'
Received on Wednesday, 23 June 2004 09:52:49 UTC