Fix typo includeStructuredData

This commit is contained in:
ajimix
2019-03-22 12:22:20 +08:00
parent 2cb30e652d
commit d1f7ca3e8f
9 changed files with 31 additions and 31 deletions

View File

@ -1091,7 +1091,7 @@ class RFC5424 {
* resolution
* @param {boolean} [options.timestampTZ=true] - Should the timestamp
* included time zone
* @param {boolean} [options.encludeStructuredData=false] - Included
* @param {boolean} [options.includeStructuredData=false] - Included
* any provided structured data
* @param {boolean} [options.utf8BOM=true] - Included the UTF8
* @param {boolean} [options.color=false] - Included the UTF8
@ -1157,11 +1157,11 @@ class RFC5424 {
} else {
this.timestampMS = false;
}
if (options.encludeStructuredData) {
if (options.includeStructuredData) {
/** @type {boolean} */
this.encludeStructuredData = true;
this.includeStructuredData = true;
} else {
this.encludeStructuredData = false;
this.includeStructuredData = false;
}
if (typeof options.utf8BOM === 'undefined' || options.utf8BOM) {
/** @type {boolean} */
@ -1494,7 +1494,7 @@ class RFC5424 {
// Build Structured Data string
let structuredData = '-';
const sdElementCount = msgStructuredData.length;
if (this.encludeStructuredData && sdElementCount > 0) {
if (this.includeStructuredData && sdElementCount > 0) {
let sdElementNames = [];
let sdElements = [];
const sdElementNameRegEx = /(\[)(\S*)(\s|\])/;