File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ export default function TargetCard(props: TargetCardProps) {
194194}
195195
196196function escapeRegExp ( value : string ) {
197- return value . replace ( / [ \^ $ * + ? . ( ) | [ \] { } \\ - ] / g, "\\$&" ) ;
197+ return value . replace ( / [ \^ $ * + ? . ( ) | [ \] { } - ] / g, "\\$&" ) ;
198198}
199199
200200export function TargetCardSkeleton ( props : { class ?: string } ) {
Original file line number Diff line number Diff line change @@ -91,10 +91,7 @@ function Inner() {
9191 const hoveredWindow = targetUnderCursor . window ;
9292 if ( hoveredWindow ) return hoveredWindow ;
9393 if ( rawOptions . captureTarget . variant === "window" ) {
94- const selected =
95- typeof selectedWindow . data === "function"
96- ? selectedWindow . data ( )
97- : selectedWindow . data ;
94+ const selected = selectedWindow . data ;
9895 if ( selected ) return selected ;
9996 }
10097 return hoveredWindow ;
You can’t perform that action at this time.
0 commit comments