it was in the original ol2 code like this

Sent from my iPhone

On May 16, 2013, at 9:51 PM, Tom Payne <notifications@github.com> wrote:

> In src/ol/parser/wkt.js:
> 
> > +    array.push('(' + this.encodePolygon_.apply(this,
> > +        [geom.components[i]]) + ')');
> > +  }
> > +  return array.join(',');
> > +};
> > +
> > +
> > +/**
> > + * Parse a WKT string.
> > + * @param {string} wkt WKT string.
> > + * @return {ol.geom.Geometry|ol.geom.GeometryCollection|undefined}
> > + *     The geometry created.
> > + * @private
> > + */
> > +ol.parser.WKT.prototype.parse_ = function(wkt) {
> > +  wkt = wkt.replace(/[\n\r]/g, ' ');
> Is there a reason why this RegExp is inlined whereas other RegExps are instance variables?
> 
> —
> Reply to this email directly or view it on GitHub.