- posso fare upload dell'immagine del prodotto dalla lista
- corretto import dati
This commit is contained in:
@@ -475,6 +475,7 @@ module.exports = {
|
||||
listimages: 1024,
|
||||
exact: 2048,
|
||||
image: 3000,
|
||||
image_and_filename: 3100,
|
||||
nationality: 4096,
|
||||
intcode: 5000,
|
||||
multioption: 6000,
|
||||
@@ -4734,7 +4735,7 @@ module.exports = {
|
||||
const result = [];
|
||||
|
||||
text = text.replace(",", ".");
|
||||
const regex = /^(\d+\.?\d*)\s*(ml|gr|l|kg)\s*$/; // Aggiunto un punto dopo \d+ per accettare anche i numeri con la virgola
|
||||
const regex = /^(\d+\.?\d*)\s*(ml|gr|l|kg|uova)\s*$/; // Aggiunto un punto dopo \d+ per accettare anche i numeri con la virgola
|
||||
|
||||
const match = regex.exec(text);
|
||||
if (match) {
|
||||
@@ -4778,7 +4779,30 @@ module.exports = {
|
||||
},
|
||||
|
||||
removeescape(inputString) {
|
||||
return inputString.replace('\\', '').replace(/"/g, '')
|
||||
// return inputString.replace(/\\/g, '').replace(/"/g, '');
|
||||
if (inputString)
|
||||
return inputString.replace(/\\/g, '').replace(/"/g, '');
|
||||
else
|
||||
return '';
|
||||
},
|
||||
|
||||
escapeQuotes(stringa) {
|
||||
if (stringa)
|
||||
return stringa.replace(/"/g, '\\"');
|
||||
else
|
||||
return '';
|
||||
},
|
||||
|
||||
replaceQuotesWithSingleQuotes(jsonString) {
|
||||
if (jsonString)
|
||||
return jsonString.replace(/"/g, "'");
|
||||
else
|
||||
return '';
|
||||
},
|
||||
|
||||
ripulisciCampo(stringa) {
|
||||
let mystr = this.replaceQuotesWithSingleQuotes(stringa);
|
||||
return mystr;
|
||||
},
|
||||
|
||||
convertToNumeroVirgola(valstr) {
|
||||
|
||||
Reference in New Issue
Block a user