User:PerfektesChaos/js/refNames/core/d.js: Difference between revisions

Content deleted Content added
-1.3
-1.4
Line 1:
/// User:PerfektesChaos/js/refNames/core/d.js
/// 2022-08-2425 PerfektesChaos@de.wikipedia
// <ref name="..."> major work
// ResourceLoader: compatible;
Line 19:
( function ( mw, $ ) {
"use strict";
var Version = -1.34,
Signature = "refNames",
THIS = { lapsus: false,
Line 76:
},
PARSER = { reQuot: false,
reWS: false,
pending: false,
$textarea: false },
Line 480 ⟶ 481:
// Uses:
// > Signature
// >< PARSER.reWS
// 2022-08-2425 PerfektesChaos@de.wikipedia
var i, n, s;
if ( typeof window.console === "object" &&
Line 494 ⟶ 496:
s = s + " -- " + about;
}
if ( ! PARSER.reWS ) {
PARSER.reWS = new RegExp( "\\s+" );
}
i = at;
while ( all.charCodeAt( i ) !== 0x3C && i >= 0 ) {
i--;
} // while
n = all.indexOf( ">", i + 1 );
if ( n < 0 ) {
n = i + 100;
}
s = s + "\n"
+ all.substring( i, n + 1).replace( PARSER.reWS, " " );
window.console.warn( s );
}