Commit 5c8ba4b52da7af1f22aabc1decec3cb404ecfc03

Authored by Adhidarma Hadiwinoto
1 parent 39af55cbf7
Exists in master

strip duplikat sn pada message

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

... ... @@ -194,6 +194,7 @@ function prefixMessageWithSN(data) {
194 194 sn = sn.replace(/-+/g, '-')
195 195 sn = sn.replace(/^-+/, '');
196 196 sn = sn.replace(/-+$/, '');
  197 + sn = sn.replace(/;\s*SN=.+?;/, '; ');
197 198 sn = sn.trim();
198 199 return 'SN=' + sn + '; ' + data['MESSAGE'];
199 200 }