Skip to content

Commit 7c60ce8

Browse files
committed
fix(transformers): update utils order
close antfu/markdown-it-async#2
1 parent ecc4a66 commit 7c60ce8

File tree

1 file changed

+8
-8
lines changed
  • packages/transformers/src/shared

1 file changed

+8
-8
lines changed

packages/transformers/src/shared/utils.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
function isTab(part: string): boolean {
2+
return part === '\t'
3+
}
4+
5+
function isSpace(part: string): boolean {
6+
return part === ' ' || part === '\t'
7+
}
8+
19
export function separateContinuousSpaces(inputs: string[]): string[] {
210
const result: string[] = []
311
let current = ''
@@ -27,14 +35,6 @@ export function separateContinuousSpaces(inputs: string[]): string[] {
2735
return result
2836
}
2937

30-
export function isTab(part: string): boolean {
31-
return part === '\t'
32-
}
33-
34-
export function isSpace(part: string): boolean {
35-
return part === ' ' || part === '\t'
36-
}
37-
3838
export function splitSpaces(
3939
parts: string[],
4040
type: 'all' | 'boundary' | 'trailing',

0 commit comments

Comments
 (0)