Skip to content

Commit f1ffcf0

Browse files
authored
Merge pull request #1377 from topcoder-platform/alert-autofix-69
Potential fix for code scanning alert no. 69: Incomplete string escaping or encoding
2 parents 92a3962 + 99c96d7 commit f1ffcf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/apps/review/src/lib/components/FieldMarkdownEditor/FieldMarkdownEditor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ const toggleStrategy = {
135135
},
136136
italic: (start: any, end: any) => {
137137
const startType = start.replace(/(\*|_)(?![\s\S]*(\*|_))/, '')
138-
const endType = end.replace(/(\*|_)/, '')
138+
const endType = end.replace(/(\*|_)/g, '')
139139
return { endType, startType }
140140
},
141141
strikethrough: (start: any, end: any) => {

0 commit comments

Comments
 (0)