Skip to content

Commit 45c27a3

Browse files
committed
fixed issue not importing several functions and classes
1 parent 959b57b commit 45c27a3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/util/groupTextTokens.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
import getIsTextType from './getIsTextType';
2+
import Token from "./Token";
3+
14
class Stack {
25
constructor() {
36
this.data = [];
@@ -36,13 +39,13 @@ export default function groupTextTokens(tokens) {
3639
}
3740
} else {
3841
if (currentStack.count > 1) {
39-
result.push(createToken('textgroup', 1));
42+
result.push(new Token('textgroup', 1));
4043

4144
while (currentStack.data.length) {
4245
result.push(currentStack.data.shift());
4346
}
4447

45-
result.push(createToken('textgroup', -1));
48+
result.push(new Token('textgroup', -1));
4649
} else if (currentStack.count === 1) {
4750
while (currentStack.data.length) {
4851
result.push(currentStack.data.shift());

0 commit comments

Comments
 (0)