Skip to content

Commit 2247ebe

Browse files
committed
feat(decode): Export replaceCodePoint
1 parent 6cb56f3 commit 2247ebe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/decode.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import htmlDecodeTree from "./generated/decode-data-html.js";
22
import xmlDecodeTree from "./generated/decode-data-xml.js";
3-
import decodeCodePoint from "./decode_codepoint.js";
3+
import {
4+
default as decodeCodePoint,
5+
replaceCodePoint,
6+
} from "./decode_codepoint.js";
47

58
// Re-export for use by eg. htmlparser2
6-
export { htmlDecodeTree, xmlDecodeTree, decodeCodePoint };
9+
export { htmlDecodeTree, xmlDecodeTree, decodeCodePoint, replaceCodePoint };
710

811
const enum CharCodes {
912
NUM = 35, // "#"

0 commit comments

Comments
 (0)