Commit b7e1d743ff028aaa83ea87cdd8afc81d6aa12714
1 parent
57556afe04
Exists in
master
trim contents
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
lib/smstools-status-parsed.js
... | ... | @@ -10,7 +10,7 @@ module.exports = async (statsFilename) => { |
10 | 10 | const smstoolsLogfile = config.smstools_log_file || '/var/log/smsd/smsd.log'; |
11 | 11 | logger.verbose('ROUTER-SMSTOOLS-STATUS-PARSED: Executing', { smstoolsLogfile }); |
12 | 12 | const contents = await smstoolsStatus(statsFilename); |
13 | - const contentsSplitted = (contents || '').split('\n'); | |
13 | + const contentsSplitted = (contents || '').trim().split('\n'); | |
14 | 14 | |
15 | 15 | const lines = []; |
16 | 16 | // eslint-disable-next-line no-restricted-syntax |