Skip to content

Commit f526de3

Browse files
Potential fix for code scanning alert no. 59: Incomplete string escaping or encoding
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent b3fb7a7 commit f526de3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/desktop/src/routes/(window-chrome)/new-main/TargetCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export default function TargetCard(props: TargetCardProps) {
194194
}
195195

196196
function escapeRegExp(value: string) {
197-
return value.replace(/[-^$*+?.()|[\]{}]/g, "\\$&");
197+
return value.replace(/[\\-^$*+?.()|[\]{}]/g, "\\$&");
198198
}
199199
export function TargetCardSkeleton(props: { class?: string }) {
200200
return (

0 commit comments

Comments
 (0)