Skip to content

Commit efd7e93

Browse files
committed
(clean) prettier code
1 parent fabb5d5 commit efd7e93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/formatString.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ function compileToJSON(str) {
7373

7474
let links = linkify.find(str)
7575
let min_index_from_link = false
76-
77-
if(links.length > 0) {
76+
77+
if (links.length > 0) {
7878
min_index_of = str.indexOf(links[0].value)
7979
min_index_from_link = true
8080
}
@@ -88,7 +88,7 @@ function compileToJSON(str) {
8888
}
8989
})
9090

91-
if(min_index_from_link && min_index_of_key != -1) {
91+
if (min_index_from_link && min_index_of_key !== -1) {
9292
let str_left = str.substr(0, min_index_of)
9393
let str_link = str.substr(min_index_of, links[0].value.length)
9494
let str_right = str.substr(min_index_of + links[0].value.length)

0 commit comments

Comments
 (0)