We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fabb5d5 commit efd7e93Copy full SHA for efd7e93
src/utils/formatString.js
@@ -73,8 +73,8 @@ function compileToJSON(str) {
73
74
let links = linkify.find(str)
75
let min_index_from_link = false
76
-
77
- if(links.length > 0) {
+
+ if (links.length > 0) {
78
min_index_of = str.indexOf(links[0].value)
79
min_index_from_link = true
80
}
@@ -88,7 +88,7 @@ function compileToJSON(str) {
88
89
})
90
91
- if(min_index_from_link && min_index_of_key != -1) {
+ if (min_index_from_link && min_index_of_key !== -1) {
92
let str_left = str.substr(0, min_index_of)
93
let str_link = str.substr(min_index_of, links[0].value.length)
94
let str_right = str.substr(min_index_of + links[0].value.length)
0 commit comments