Skip to content
This repository has been archived by the owner on Jul 2, 2024. It is now read-only.

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
tbblake committed May 16, 2023
1 parent 03b1428 commit 006cb58
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions zabbix/houseKeeperLogParser.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
function parser() {
document.getElementById('dst').value='';
zVer=document.getElementById('zVer').value;
myRegex=logRegexes[zVer];
myOut=parsedOut[zVer];

var lines=document.getElementById('src').value.split('\n');
document.getElementById('dst').value='';
for (var i=0;i<lines.length;i++) {
myRegex=logRegexes[zVer];
if (lines[i].match(myRegex)) {
var newString=lines[i].replace(myRegex,parsedOut[zVer]);
var newString=lines[i].replace(myRegex,myOut);
document.getElementById('dst').value+=newString+'\n';
}
}
Expand Down

0 comments on commit 006cb58

Please sign in to comment.