mirror of
https://github.com/misskey-dev/SyslogPro.git
synced 2025-08-08 00:53:53 +09:00
Fix typo includeStructuredData
This commit is contained in:
@ -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|\])/;
|
||||
|
Reference in New Issue
Block a user