File tree 2 files changed +1
-4
lines changed 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 26
26
* @property {Array.<string> } source
27
27
*/
28
28
29
- import repeat from 'repeat-string'
30
29
import { toString } from 'nlcst-to-string'
31
30
import { pointStart , pointEnd } from 'unist-util-position'
32
31
import { location } from 'vfile-location'
@@ -154,7 +153,7 @@ function all(config, parent) {
154
153
155
154
if ( end && start . line !== end . line ) {
156
155
const lineEnding = config . parser . tokenizeWhiteSpace (
157
- repeat ( '\n' , start . line - end . line )
156
+ '\n' . repeat ( start . line - end . line )
158
157
)
159
158
patch ( config , [ lineEnding ] , end . offset )
160
159
Original file line number Diff line number Diff line change 35
35
],
36
36
"dependencies" : {
37
37
"@types/mdast" : " ^3.0.0" ,
38
- "@types/repeat-string" : " ^1.0.0" ,
39
38
"@types/unist" : " ^2.0.0" ,
40
39
"nlcst-to-string" : " ^3.0.0" ,
41
- "repeat-string" : " ^1.0.0" ,
42
40
"unist-util-position" : " ^4.0.0" ,
43
41
"vfile" : " ^5.0.0" ,
44
42
"vfile-location" : " ^4.0.0"
You can’t perform that action at this time.
0 commit comments