Wikipedia:Monobook.js/LiveRC.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m Rimetto fix, il bug per il momento c'è ancora. |
evito RegExp().compile (deprecato). Dovrebbe risolvere i problemi di compatibilità con Chrome |
||
Riga 183:
var string = this;
for (var i=0; i<chars.length; i++) {
regex
string = string.replace(regex, '&' + entities[i] + ';');
}
Riga 841:
var match, regex = new RegExp();
if (lrcTZ) {
regex
match = regex.exec(lrcTZ);
if (!match) {
Riga 853:
tz = -now.getTimezoneOffset();
}
regex
match = regex.exec(timestamp);
if (!match) {
Riga 962:
var duration = duration;
regex
regex2
var escTitle = title.replace(regex, "\\'");
var diffEscTitle = escTitle.replace(regex2, '\%22');
Riga 1 160:
// TOR potentiel / AOL
var isTOR = regex
if (isTOR.test(user))
preEditor += '<img src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6e/Dialog-warning.svg/16px-Dialog-warning.svg.png" width="16px" alt="forse TOR" title="forse TOR" /> ';
Riga 1 186:
// Remplace lien [[xxx]] par <a> ;
var wcomment = comment.htmlize();
regex
wcomment = wcomment.replace(regex, "<a href='"+wgServer+wgScriptPath+"/index.php?title=$2&redirect=no' target='_new'>$1</a>");
regex
wcomment = wcomment.replace(regex, ">$1<");
Riga 1 462:
if (state & REVERT) {
regex
match = regex.exec(comment);
if (!match) {
regex
match = regex.exec(comment);
}
|