User:PleaseStand/segregate-refs-dev.js: Difference between revisions

Content deleted Content added
don't mess with commented out refs
m attempting bugfix
Line 124:
// The tags listed below other than "ref" are there for an obvious reason.
// NB: "references" is here to prevent out-of-line refs from being returned.
this.refScanRegex = /(?:<!--[\s\S]*?-->|<(nowiki|source|references|ref)(?:\s|(?:[^"']|"[^"]*"|'[^']*')*?)(?:\/>|(?:>[\s\S]*?<\/\1(?:|\s[^>]*)>))|<!--.*?-->)/gi;
}
RefScanner.prototype = {