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

Content deleted Content added
merged in changes from master branch - untested 3-way merge
Fixed a typo in the refScanRegex; <refname=...> [sic] caused RefParser to throw an "invalid ref" exception
Line 131:
// 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 = {