Merge pull request #1394 from rgriffith/ie8_xml_folding_fix

Addresses an issue where IE8 does not properly handle the RegExp in _par...
This commit is contained in:
Harutyun Amirjanyan 2013-04-24 13:04:33 -07:00
commit 0c4ca1872c

View file

@ -80,9 +80,8 @@ oop.inherits(FoldMode, BaseFoldMode);
this.tagRe = /^(\s*)(<?(\/?)([-_a-zA-Z0-9:!]*)\s*(\/?)>?)/;
this._parseTag = function(tag) {
var match = this.tagRe.exec(tag);
var column = this.tagRe.lastIndex || 0;
this.tagRe.lastIndex = 0;
var match = tag.match(this.tagRe);
var column = 0;
return {
value: tag,