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;
351 var iw_type = class_name.match(/iw_(\w+\.?\w{0,12})/);
354 if (!interwiki_label.match(/oIWIKIo.*?cIWIKIc/)) {
505 if ((matches = attrs[i].value.match(/(left|center|right)/))) {
549 if (attrs[i].value.match(geshi_classes)) {
562 matches = attrs[i].value.match(/font-family:\s*([\w\-\s,]+);?/);
567 //matches = attrs[i].value.match(/font-size:\s*(\d+(\w+|%));?/);
568 matches = attrs[i].value.match(/font-size:\s*(.*)/);
573 matches = attrs[i].value.match(/font-weight:\s*(\w+);?/);
577 matches = attrs[i].value.match(/.*?color:\s*(.*)/);
581 if (matches[0].match(/background/)) {
588 matches = attrs[i].value.match(/background:\s*(\w+)/);
589 if (matches && matches[0].match(/background/)) {
606 matches = attrs[i].value.match(/\s*(\w+)align/);
630 if (attrs[i].value.match(/fn_top/)) {
632 } else if (attrs[i].value.match(/fn_bot/)) {
634 } else if (attrs[i].value.match(/mf_(png|gif|jpg|jpeg)/i)) {
636 } else if (attrs[i].value.match(/interwiki/)) {
643 media_class = this.link_class.match(/mediafile/);
649 var http = attrs[i].escaped.match(/https*:\/\//) ? true : false;
651 if (attrs[i].escaped.match(/\/lib\/exe\/detail.php/)) {
653 } else if (attrs[i].escaped.match(/exe\/fetch.php/)) {
657 … if (this.link_class && this.link_class.match(/media/) && !this.link_title) {
658 var link_find = attrs[i].escaped.match(/media=(.*)/);
663 … var media_type = attrs[i].escaped.match(/fetch\.php.*?media=.*?\.(png|gif|jpg|jpeg)$/i);
666 if (attrs[i].escaped.match(/^https*:/)) {
670 if (attrs[i].escaped.match(/^ftp:/)) {
673 } else if (attrs[i].escaped.match(/do=export_code/)) {
675 } else if (attrs[i].escaped.match(/^nntp:/)) {
678 } else if (attrs[i].escaped.match(/^mailto:/)) {
681 } else if (attrs[i].escaped.match(/m-files/)) {
685 } else if (attrs[i].escaped.match(/^file:/)) { //samba share
693 … else if (http && !media_type && (matches = attrs[i].escaped.match(/fetch\.php(.*)/))) {
694 if (matches[1].match(/media=/)) {
704 matches = attrs[i].escaped.match(regex);
711 if (!this.attr.match(/^:/)) {
718 matches = attrs[i].escaped.match(/doku.php\?id=(.*)/);
721 if (!attrs[i].escaped.match(rx)) {
728 matches = attrs[i].escaped.match(/doku.php\/(.*)/);
733 if (!matches[1].match(/\?/) && matches[1].match(/&/)) {
739 if (!matches[1].match(/^:/)) {
745 … if (this.attr.match(/\.\w+$/)) { // external mime's first access
750 if (attrs[n].value.match(/other_mime/))
759 matches = attrs[i].value.match(/\\\\/); // Windows share
768 if (attrs[i].value.match(/http:/)) {
775 if (matches = this.link_class.match(/media(.*)/)) {
784 if (!this.attr.match(/^:/) && !this.attr.match(/^https?\:/)) {
792 …if (this.attr.match && this.attr.match(/%[a-fA-F0-9]{2}/) && (matches = this.attr.match(/userfiles…
794 if (!matches[1].match(/^:/)) {
801 } else if (this.attr && this.attr.match(/%[a-fA-F0-9]{2}/)) {
807 … if (this.link_title && this.link_title.match(/Snippet/)) this.code_snippet = true;
810 if (attrs[i].value.match(/^#/) && this.link_class.match(/wikilink/)) {
816 if (this.link_class.match(/wikilink/) && this.link_title) {
821 if (!this.attr.match(/^:/)) {
824 if (this.attr.match(/\?.*?=/)) {
834 … if (!this.attr.match(/\?.*?=/) && !attrs[i].value.match(/doku.php/)) {
835 var qs = attrs[i].value.match(/(\?.*)$/);
840 … } else if (this.link_class.match(/mediafile/) && this.link_title && !this.attr) {
844 if (!this.attr.match(/^:/)) {
847 } else if (this.link_class.match(/interwiki/)) {
921 if (matches = attrs[i].escaped.match(/fetch\.php.*?(media=.*)/)) {
924 if (matches = attrs[i].escaped.match(/(media.*)/)) {
929 if (!src.match(/https?:/) && !src.match(/^:/)) src = ':' + src;
930 } else if (attrs[i].escaped.match(/https?:\/\//)) {
935 else if (matches = attrs[i].escaped.match(/\/_media\/(.*)/)) {
939 if (!src.match(/^:/)) src = ':' + src;
942 … else if (matches = attrs[i].escaped.match(/\/lib\/exe\/fetch.php\/(.*)/)) {
945 if (!src.match(/^:/)) src = ':' + src;
948 matches = attrs[i].escaped.match(/^.*?\/userfiles\/image\/(.*)/);
951 matches = attrs[i].escaped.match(regex);
958 matches = attrs[i].escaped.match(regex);
971 if (src && src.match(/lib\/images\/smileys/)) {
976 … if (this.attr && this.attr.match && this.attr.match(/%[a-fA-F0-9]{2}/)) {
990 var match = attrs[i].escaped.match(/width:\s*(\d+)/);
991 if (match) {
992 width = match[1];
993 var match = attrs[i].escaped.match(/height:\s*(\d+)/);
994 if (match) height = match[1];
997 if (attrs[i].escaped.match(/(center|middle)/)) {
999 } else if (attrs[i].escaped.match(/right/)) {
1001 } else if (attrs[i].escaped.match(/left/)) {
1042 } else if (tag.match(/^h(\d+|r)/)) {
1044 if (tag.match(/h(\d+)/)) {
1061 if (results.match(/(\/\/|\*)(\x20)+/)) {
1077 if (results.match(/_FORMAT_SPACE_\s*$/)) {
1220 var inherits = font_str.match(/(inherit)/g);
1278 if (results.match(/''\s*$/m)) {
1345 } else if (current_tag.match(/h\d+/)) {
1351 if (results.match(/\n$/) && !this.list_level) {
1419 if (text.match(/~~START_HTML_BLOCK~~/)) {
1422 if (text.match(/~~CLOSE_HTML_BLOCK~~/)) {
1430 if (this.interwiki && results.match(/>\w+\s*\|$/)) {
1443 text = text.replace(/^(>)+/, function(match, quotes) {
1444 return (match.replace(/(>)/g, "\__QUOTE__"));
1449 if (text.match(/^&\w+;/)) {
1473 if (text.match(/nowiki>/)) {
1479 if (text.match(/\n{2,}\s{1,}/)) {
1491 var geshi = text.match(/^\s*geshi:\s+(.*)$/m);
1501 if (text.match(/fckgL\d+/)) {
1504 if (text.match(/^[\-,:;!_]/)) {
1520 if (this.last_tag == 'a' && text.match(/^[\.,;\:\!]/)) {
1533 if (!results.match(/\[\[\\\\.*?\|$/) && !text.match(/\w:(\\(\w?))+/)) {
1534 if (!text.match(/\\\\[\w\.\-\_]+\\[\w\.\-\_]+/)) {
1543 if (text.match(/\w/) && !text.match(/^\s*\d\)\s*$/)) {
1578 if (results.match(regex)) {
1585 if (text.match(/</)) {
1616 results = results.replace(/(\[\[\\\\)(.*?)\]\]/gm, function(match, brackets, block) {
1664 …results = results.replace(/\[\[(\w+\.?\w{0,12})>(.*?)\|(.*?)\]\]/gm, function(match, id, iw_replac…
1681 …results = results.replace(/\s*([\|\^]+)((\W\W_FORMAT_SPACE_)+)/gm, function(match, pipes, format) {
1712 function(match, list_type, format, text, list_type_close, rest) {
1722 function(match,link,spaces,type) {
1826 …esults.replace(/\[\[(.*?)\|(<font[^\>]+>)(.*?)(<\/font>)\s*(\]\])\s*/gm, function(match, a, b, c) {
1827 match = '[[' + a + '|' + c + ']]';
1832 return match;
1835 … = results.replace(/(\s*={2,})\s*(.*?)(<font[^\>]+>)(.*?)(<\/font>)(.*?)\s*\1/gm, function(match) {
1836 match = match.replace(/<\/font>/g, " ");
1837 match = match.replace(/<font.*?>/g, " ");
1842 return match;
1851 var matches = i.match(/_(\d+)/);
1858 if (!fn.match(/p>\(\(\d+/)) {