diff --git a/src/types/Line.ts b/src/types/Line.ts index feee8e4f2..8b7bc0017 100644 --- a/src/types/Line.ts +++ b/src/types/Line.ts @@ -129,5 +129,5 @@ export function saturatedLineToLine(line: SaturatedLine) { } export function lineToLintedString(line: Line, lint: LintConfig) { - return line.args.map(v => toFormattedString(v, lint)).join(' ') + return line.args.map(v => toFormattedString(v.data, lint)).join(' ') } diff --git a/src/utils/utils.ts b/src/utils/utils.ts index f6c731799..b6490571c 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -158,7 +158,7 @@ export function toFormattedString(value: any, lint: LintConfig): string { if (value && value[ToFormattedString]) { return value[ToFormattedString](lint) } else { - return `${value}` + return value.toString() } }