X-Git-Url: http://git.euphorik.ch/?p=euphorik.git;a=blobdiff_plain;f=js%2Fformater.js;fp=js%2Fformater.js;h=78e240778a6b8bfa9cef54f12ef899a3000c651e;hp=ba2cbc574c748bbf081c0da06f62e3679ab1fbe8;hb=24ed7a141aa345454300dd260bbabae3a9f92408;hpb=ab6de4c6baf1feb8f35e0bf45867315899777bdc
diff --git a/js/formater.js b/js/formater.js
index ba2cbc5..78e2407 100644
--- a/js/formater.js
+++ b/js/formater.js
@@ -30,7 +30,7 @@ euphorik.Formater = function() {
this.regexImg = new RegExp("^.*?\\.(gif|jpg|png|jpeg|bmp|tiff)$", "i");
this.regexDomaine = new RegExp("^(?:(?:" + this.protocoles + ")://)(.*?)(?:$|/).*$", "i");
this.regexTestProtocoleExiste = new RegExp("^(?:" + this.protocoles + ")://.*$", "i");
- this.regexNomProtocole = new RegExp("^(.*?)://");
+ this.regexProtocolName = new RegExp("^(.*?)://");
};
/**
@@ -44,8 +44,8 @@ euphorik.Formater.prototype.filtrerInputPseudo = function(nick) {
euphorik.Formater.prototype.getSmilesHTML = function() {
var XHTML = "";
- objectEach(this.smiles, function(nom) {
- XHTML += "";
+ objectEach(this.smiles, function(name) {
+ XHTML += "";
});
return XHTML;
};
@@ -79,9 +79,9 @@ euphorik.Formater.prototype.traiterLiensConv = function(m) {
* moyenne sur échantillon : 234ms
*/
euphorik.Formater.prototype.traiterSmiles = function(m) {
- objectEach(this.smiles, function(nom, smiles) {
+ objectEach(this.smiles, function(name, smiles) {
for (var i = 0; i < smiles.length; i++) {
- m = m.replace(smiles[i], "");
+ m = m.replace(smiles[i], "");
}
});
return m;
@@ -142,9 +142,9 @@ euphorik.Formater.prototype.getShort = function(url) {
if (rechercheDomaine && rechercheDomaine.length >= 2) {
versionShort = rechercheDomaine[1];
} else {
- var nomProtocole = this.regexNomProtocole.exec(url);
- if (nomProtocole && nomProtocole.length >= 2) {
- versionShort = nomProtocole[1];
+ var protocolName = this.regexProtocolName.exec(url);
+ if (protocolName && protocolName.length >= 2) {
+ versionShort = protocolName[1];
}
}
}
@@ -153,7 +153,7 @@ euphorik.Formater.prototype.getShort = function(url) {
};
euphorik.Formater.prototype.supprimerSmiles = function(m) {
- objectEach(this.smiles, function(nom, smiles) {
+ objectEach(this.smiles, function(name, smiles) {
for (var i = 0; i < smiles.length; i++) {
m = m.replace(smiles[i], "");
}