User:Daask/MultiResolver/en.wikipedia.js: Difference between revisions

Content deleted Content added
Add IMDb for Template:IMDb ID using d:Property:P345.
Allow colons before identifiers.
 
Line 382:
*/
function findAndLinkIdentifiersByHref(property, identifier_regexp, href){
const identifierPlusRegexp = new RegExp(`^:?\\s*(${identifier_regexp})(.*)`);
const einLabelLinks = $(`a[href='${href}']`);
const einPlusTextNodes = einLabelLinks.map((i, el) => el.nextSibling);