marijnh/CodeMirror — pull request #777 by bfrohs (2012-08-30 21:33:09+00:00)
Title: Avoid TypeError with digits and empty editor.

Closes #776.

Alternatively, you could use:

```
if ( stream.peek() !== undefined && 'e' == stream.peek().toLowerCase() ) {
```