Lines Matching refs:match

19          if(results.match(regex)) return true;
22 if(results.match(regex)) return true;
25 if(results.match(regex)) return true;
28 if(results.match(regex)) return true;
264 var iw_type = class_name.match(/iw_(\w+\.?\w{0,12})/);
269 if(!interwiki_label.match(/oIWIKIo.*?cIWIKIc/)) {
416 if((matches=attrs[i].value.match(/(left|center|right)/))) {
460 if(attrs[i].value.match(geshi_classes)) {
473 matches = attrs[i].value.match(/font-family:\s*([\w\-\s,]+);?/);
478 //matches = attrs[i].value.match(/font-size:\s*(\d+(\w+|%));?/);
479 matches = attrs[i].value.match(/font-size:\s*(.*)/);
484 matches = attrs[i].value.match(/font-weight:\s*(\w+);?/);
488 matches = attrs[i].value.match(/.*?color:\s*(.*)/);
492 if(matches[0].match(/background/)) {
500 matches = attrs[i].value.match(/background:\s*(\w+)/);
501 if(matches && matches[0].match(/background/)) {
519 matches = attrs[i].value.match(/\s*(\w+)align/);
547 if(attrs[i].value.match(/fn_top/)) {
550 else if(attrs[i].value.match(/fn_bot/)) {
553 else if(attrs[i].value.match(/mf_(png|gif|jpg|jpeg)/i)) {
556 else if(attrs[i].value.match(/interwiki/)) {
564 media_class = this.link_class.match(/mediafile/);
574 var http = attrs[i].escaped.match(/https*:\/\//) ? true : false;
576 if(attrs[i].escaped.match(/\/lib\/exe\/detail.php/)) {
579 else if(attrs[i].escaped.match(/exe\/fetch.php/)) {
583 if(this.link_class && this.link_class.match(/media/) && !this.link_title) {
584 var link_find = attrs[i].escaped.match(/media=(.*)/);
589 … var media_type = attrs[i].escaped.match(/fetch\.php.*?media=.*?\.(png|gif|jpg|jpeg)$/i);
592 if(attrs[i].escaped.match(/^https*:/)) {
596 if(attrs[i].escaped.match(/^ftp:/)) {
600 else if(attrs[i].escaped.match(/do=export_code/)) {
603 else if(attrs[i].escaped.match(/^nntp:/)) {
607 else if(attrs[i].escaped.match(/^mailto:/)) {
611 else if(attrs[i].escaped.match(/m-files/)) {
616 else if(attrs[i].escaped.match(/^file:/)) { //samba share
624 … else if(http && !media_type && (matches = attrs[i].escaped.match(/fetch\.php(.*)/)) ) {
625 if(matches[1].match(/media=/)) {
636 matches = attrs[i].escaped.match(regex);
643 if(!this.attr.match(/^:/)) {
652 matches = attrs[i].escaped.match(/doku.php\?id=(.*)/);
655 if(!attrs[i].escaped.match(rx)) {
662 matches = attrs[i].escaped.match(/doku.php\/(.*)/);
667 if(!matches[1].match(/\?/) && matches[1].match(/&/)) {
673 if(!matches[1].match(/^:/)) {
680 if(this.attr.match(/\.\w+$/)) { // external mime's first access
686 if(attrs[n].value.match(/other_mime/))
696 matches = attrs[i].value.match(/\\\\/); // Windows share
705 if(attrs[i].value.match(/http:/)) {
712 if(matches = this.link_class.match(/media(.*)/)) {
723 if(!this.attr.match(/^:/) && !this.attr.match(/^https?\:/)) {
731 …if(this.attr.match && this.attr.match(/%[a-fA-F0-9]{2}/) && (matches = this.attr.match(/userfiles…
733 if(!matches[1].match(/^:/)) {
741 else if(this.attr && this.attr.match(/%[a-fA-F0-9]{2}/)) {
747 … if(this.link_title && this.link_title.match(/Snippet/)) this.code_snippet = true;
750 if(attrs[i].value.match(/^#/) && this.link_class.match(/wikilink/)) {
756 if(this.link_class.match(/wikilink/) && this.link_title) {
761 if(!this.attr.match(/^:/)) {
764 if(this.attr.match(/\?.*?=/)){
775 if(!this.attr.match(/\?.*?=/) && !attrs[i].value.match(/doku.php/)) {
776 var qs = attrs[i].value.match(/(\?.*)$/);
782 else if(this.link_class.match(/mediafile/) && this.link_title && !this.attr) {
786 if(!this.attr.match(/^:/)) {
790 else if(this.link_class.match(/interwiki/)) {
868 if(matches = attrs[i].escaped.match(/fetch\.php.*?(media=.*)/)) {
871 if(matches = attrs[i].escaped.match(/(media.*)/)) {
876 if(!src.match(/https?:/) && !src.match(/^:/)) src = ':' + src;
878 else if(attrs[i].escaped.match(/https?:\/\//)){
883 … else if(matches = attrs[i].escaped.match(/\/_media\/(.*)/)) {
887 if(!src.match(/^:/)) src = ':' + src;
890 else if(matches = attrs[i].escaped.match(/\/lib\/exe\/fetch.php\/(.*)/)) {
893 if(!src.match(/^:/)) src = ':' + src;
898 matches = attrs[i].escaped.match(/^.*?\/userfiles\/image\/(.*)/);
901 … matches = attrs[i].escaped.match(regex);
908 matches = attrs[i].escaped.match(regex);
922 if(src && src.match(/lib\/images\/smileys/)) {
927 …if(this.attr && this.attr.match && this.attr.match(/%[a-fA-F0-9]{2}/)) { …
944 var match = attrs[i].escaped.match(/width:\s*(\d+)/);
945 if(match) {
946 width=match[1];
947 var match = attrs[i].escaped.match(/height:\s*(\d+)/);
948 if(match) height = match[1];
952 if(attrs[i].escaped.match(/(center|middle)/)) {
955 else if(attrs[i].escaped.match(/right/)) {
958 else if(attrs[i].escaped.match(/left/)) {
1003 else if(tag.match(/^h(\d+|r)/)) {
1005 if(tag.match(/h(\d+)/)) {
1024 if(results.match(/(\/\/|\*)(\x20)+/)) {
1038 if(results.match(/_FORMAT_SPACE_\s*$/)) {
1196 var inherits = font_str.match(/(inherit)/g);
1256 if(results.match(/''\s*$/m)) {
1338 else if (current_tag.match(/h\d+/)) {
1344 if(results.match(/\n$/) && !this.list_level) {
1410 if(text.match(/~~START_HTML_BLOCK~~/)) {
1413 if(text.match(/~~CLOSE_HTML_BLOCK~~/)) {
1420 if(this.interwiki && results.match(/>\w+\s*\|$/)) {
1434 text = text.replace(/^(>)+/,function(match,quotes) {
1435 return(match.replace(/(>)/g, "\__QUOTE__")) ;
1440 if(text.match(/^&\w+;/)) {
1466 if(text.match(/nowiki>/)) {
1472 if(text.match(/\n{2,}\s{1,}/)) {
1485 var geshi =text.match(/^\s*geshi:\s+(.*)$/m);
1495 if(text.match(/fckgL\d+/)) {
1498 if(text.match(/^[\-,:;!_]/)) {
1515 if(this.last_tag == 'a' && text.match(/^[\.,;\:\!]/)) {
1528 if(!results.match(/\[\[\\\\.*?\|$/) && !text.match(/\w:(\\(\w?))+/ ))
1530 if(!text.match(/\\\\[\w\.\-\_]+\\[\w\.\-\_]+/)) {
1539 if(text.match(/\w/) && ! text.match(/^\s*\d\)\s*$/)) {
1576 if(results.match(regex)) {
1583 if(text.match(/</)) {
1615 results = results.replace(/(\[\[\\\\)(.*?)\]\]/gm, function(match,brackets,block) {
1662 …results =results.replace(/\[\[(\w+\.?\w{0,12})>(.*?)\|(.*?)\]\]/gm,function(match,id,iw_replace,li…
1680 … results =results.replace(/\s*([\|\^]+)((\W\W_FORMAT_SPACE_)+)/gm,function(match,pipes,format) {
1711 function(match,list_type,format,text, list_type_close, rest) {
1720 function(match,link,spaces,type) {
1819 … = results.replace(/\[\[(.*?)\|(<font[^\>]+>)(.*?)(<\/font>)\s*(\]\])\s*/gm,function(match,a,b,c) {
1820 match='[[' + a +'|' + c +']]';
1825 return match;
1828 …sults.replace(/(\s*={2,})\s*(.*?)(<font[^\>]+>)(.*?)(<\/font>)(.*?)\s*\1/gm,function(match) {
1829 match = match.replace(/<\/font>/g," ");
1830 match = match.replace(/<font.*?>/g," ");
1835 return match;
1844 var matches = i.match(/_(\d+)/);
1851 if(!fn.match(/p>\(\(\d+/)) {