make getting notes a little cleaner in stat parser

This commit is contained in:
TheLastScrub
2024-07-13 15:54:50 -07:00
parent 21753ee142
commit bfa74e0210
+10 -3
View File
@@ -138,15 +138,22 @@ function GetNotesFromInput(inputText) {
try {
if (results != null && results.length > 0) {
[notes] = results;
notes = notes.replace("\n", " ");
let output = "";
const lines = results[0].split(/\r?\n/);
for (var i = 0; i < lines.length; i++) {
output += lines[i] + "<br>";
}
notes = output;
}
} catch (ex) {
console.log("GetNotesFromInput Error");
console.log(ex);
}
return notes;
return [notes];
}
function GetArmorFromInput(inputText) {