Commit 6bf793ac authored by CardBook's avatar CardBook

version 27.2

parent aee5b484
......@@ -159,7 +159,7 @@ if ("undefined" == typeof(cardbookCardParser)) {
this.dirPrefId = vDirPrefId;
var re = /[\n\u0085\u2028\u2029]|\r\n?/;
var vCardDataArray = cardbookUtils.cleanArray(vCardData.split(re));
var vCardDataArray = cardbookUtils.cleanArrayWithoutTrim(vCardData.split(re));
if (vCardDataArray.indexOf("VERSION:3.0") >= 0 || vCardDataArray.indexOf("VERSION:4.0") >= 0) {
try {
// For multilines data
......
......@@ -520,6 +520,16 @@ if ("undefined" == typeof(cardbookUtils)) {
return newArray;
},
cleanArrayWithoutTrim: function (vArray) {
var newArray = [];
for(let i = 0; i<vArray.length; i++){
if (vArray[i] && vArray[i] != ""){
newArray.push(vArray[i]);
}
}
return newArray;
},
parseArray: function (vArray) {
var lTemp = "";
for (let vArrayIndex = 0; vArrayIndex < vArray.length; vArrayIndex++) {
......
......@@ -89,7 +89,7 @@ if ("undefined" == typeof(ovl_synchro)) {
prefs.setCharPref("accountsShown", "all");
prefs.setCharPref("accountShown", "");
prefs.setCharPref("uncategorizedCards", "");
prefs.setCharPref("addonVersion", "27.1");
prefs.setCharPref("addonVersion", "27.2");
},
lEventTimerSync : { notify: function(lTimerSync) {
......
......@@ -6,7 +6,7 @@
<Description about="urn:mozilla:install-manifest">
<em:id>cardbook@vigneau.philippe</em:id>
<em:name>CardBook</em:name>
<em:version>27.1</em:version>
<em:version>27.2</em:version>
<em:type>2</em:type>
<em:description>vCard Address Book</em:description>
<em:creator>Philippe Vigneau</em:creator>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment