Changeset 626


Ignore:
Timestamp:
05/25/09 15:40:55 (3 years ago)
Author:
totoro
Message:

Minor fix for r625.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wymeditor/jquery.wymeditor.js

    r625 r626  
    34453445{ 
    34463446  var matches = xhtml.match(new RegExp('<pre[^>]*>(.*?)<\/pre>','gmi')); 
    3447   for(var i=0; i<matches.length; i++) { 
    3448     xhtml = xhtml.replace(matches[i], matches[i].replace(new RegExp('<br \/>', 'g'), String.fromCharCode(13,10))); 
     3447  if(matches) { 
     3448    for(var i=0; i<matches.length; i++) { 
     3449      xhtml = xhtml.replace(matches[i], matches[i].replace(new RegExp('<br \/>', 'g'), String.fromCharCode(13,10))); 
     3450    } 
    34493451  } 
    34503452  return xhtml; 
Note: See TracChangeset for help on using the changeset viewer.