File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ import { InstantiationProgress } from '../bindings/progress';
18
18
import { arrowToSQLField } from '../json_typedef' ;
19
19
import { WebFile } from '../bindings/web_file' ;
20
20
import { DuckDBDataProtocol } from '../bindings' ;
21
- import { getOPFSFiles , isOPFSProtocol } from "../utils/opfs_util" ;
21
+ import { searchOPFSFiles , isOPFSProtocol } from "../utils/opfs_util" ;
22
22
23
23
const TEXT_ENCODER = new TextEncoder ( ) ;
24
24
@@ -700,7 +700,7 @@ export class AsyncDuckDB implements AsyncDuckDBBindings {
700
700
}
701
701
702
702
private async registerOPFSFileFromSQL ( text : string ) {
703
- const files = getOPFSFiles ( text ) ;
703
+ const files = searchOPFSFiles ( text ) ;
704
704
const result : string [ ] = [ ] ;
705
705
for ( const file of files ) {
706
706
try {
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ export function isOPFSProtocol(path: string): boolean {
5
5
return path . search ( REGEX_OPFS_PROTOCOL ) > - 1 ;
6
6
}
7
7
8
- export function getOPFSFiles ( text : string ) {
8
+ export function searchOPFSFiles ( text : string ) {
9
9
return [ ...text . matchAll ( REGEX_OPFS_FILE ) ] . map ( match => match [ 1 ] ) ;
10
10
}
You can’t perform that action at this time.
0 commit comments