Skip to content

Commit b39655c

Browse files
committed
use new initializer
1 parent db60d06 commit b39655c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/core/ansi-colors.ts

+6-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
/*
2-
* ansi-colors.ts
3-
*
4-
* Copyright (C) 2020-2022 Posit Software, PBC
5-
*
6-
*/
2+
* ansi-colors.ts
3+
*
4+
* Copyright (C) 2020-2022 Posit Software, PBC
5+
*/
76

8-
import ansiUp from "ansi_up";
7+
import { AnsiUp } from "ansi_up";
98
import { Element, parseHtml } from "./deno-dom.ts";
109

1110
export function hasAnsiEscapeCodes(str: string) {
@@ -14,7 +13,7 @@ export function hasAnsiEscapeCodes(str: string) {
1413
}
1514

1615
export async function convertToHtmlSpans(str: string) {
17-
const a = new ansiUp();
16+
const a = new AnsiUp();
1817
a.use_classes = true;
1918
const html = a.ansi_to_html(str);
2019

0 commit comments

Comments
 (0)