File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
extensions/ql-vscode/src/view/results Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,7 @@ import {
2727} from "./result-table-utils" ;
2828import { vscode } from "../vscode-api" ;
2929import { sendTelemetry } from "../common/telemetry" ;
30-
31- const FILE_PATH_REGEX = / ^ (?: .+ [ \\ / ] ) * ( .+ ) $ / ;
30+ import { basename } from "../../common/path" ;
3231
3332/**
3433 * Properties for the `ResultTables` component.
@@ -302,7 +301,7 @@ export class ResultTables extends React.Component<
302301 openFile ( this . props . queryPath ) ;
303302 sendTelemetry ( "local-results-open-query-file" ) ;
304303 } ;
305- const fileName = FILE_PATH_REGEX . exec ( this . props . queryPath ) ?. [ 1 ] || "query" ;
304+ const fileName = basename ( this . props . queryPath ) ;
306305
307306 return (
308307 < span className = "vscode-codeql__table-selection-pagination" >
You can’t perform that action at this time.
0 commit comments