User:V111P/js/webRef.js: Difference between revisions

Content deleted Content added
mNo edit summary
mNo edit summary
Line 760:
 
if (text && parts.length > 1) {
var matchedending = text.match(parts[1] + '\\s*(.+?)\\s*' + (parts[2] || ''));
var matched = text.match(parts[1] + '\\s*(.+' + (!ending ? ')' : '?)\\s*' + ending));
if (matched && matched[1])
text = matched[1];