Changeset 263


Ignore:
Timestamp:
07/17/05 01:10:00 (14 years ago)
Author:
gogo
Message:

Fix for #105 - incorrect RegExp? caused SelfNamedAnchors? to not be
corrected if more than one on a page.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/htmlarea.js

    r261 r263  
    41794179  if(typeof this.config.stripSelfNamedAnchors != 'undefined' && this.config.stripSelfNamedAnchors) 
    41804180  { 
    4181     var stripRe = new RegExp(document.location.href.replace(HTMLArea.RE_Specials, '\\$1') + '(#.*)', 'g'); 
     4181    var stripRe = new RegExp(document.location.href.replace(HTMLArea.RE_Specials, '\\$1') + '(#[^\'" ]*)', 'g'); 
    41824182    html = html.replace(stripRe, '$1'); 
    41834183  } 
Note: See TracChangeset for help on using the changeset viewer.