Changeset 1043 for branches/new-dialogs


Ignore:
Timestamp:
10/02/08 14:20:01 (11 years ago)
Author:
douglas
Message:

CHANGED Ticket #1280 Update the regex to be a bit more robust for the InsertSpan? fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new-dialogs/modules/InternetExplorer/InternetExplorer.js

    r1042 r1043  
    150150   // selections that may cause us to fill in junk span tags.  We'll clean 
    151151   // those here 
    152    html = html.replace(/<span[^>]+id="__InsertSpan_Workaround_[a-z]+".*?><\/span>/i,""); 
     152   html = html.replace(/<span[^>]+id="__InsertSpan_Workaround_[a-z]+".*?>([\s\S]*?)<\/span>/i,"$1"); 
    153153    
    154154   return html; 
     
    163163   // selections that may cause us to fill in junk span tags.  We'll clean 
    164164   // those here 
    165    html = html.replace(/<span[^>]+id="__InsertSpan_Workaround_[a-z]+".*?><\/span>/i,""); 
     165   html = html.replace(/<span[^>]+id="__InsertSpan_Workaround_[a-z]+".*?>([\s\S]*?)<\/span>/i,"$1"); 
    166166    
    167167   return html; 
     
    517517          for (var index=0; index<count; ++index) 
    518518          { 
    519             result += Letters.substr(Math.floor(Math.random()*26 + 1), 1); 
     519            result += Letters.substr(Math.floor(Math.random()*Letters.length + 1), 1); 
    520520          } 
    521521          return result; 
Note: See TracChangeset for help on using the changeset viewer.