mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 09:36:01 +00:00
ndjson direct support
This commit is contained in:
@@ -6,6 +6,10 @@ function getJslFileName(jslid) {
|
||||
if (archiveMatch) {
|
||||
return path.join(resolveArchiveFolder(archiveMatch[1]), `${archiveMatch[2]}.jsonl`);
|
||||
}
|
||||
const fileMatch = jslid.match(/^file:\/\/(.*)$/);
|
||||
if (fileMatch) {
|
||||
return fileMatch[1];
|
||||
}
|
||||
return path.join(jsldir(), `${jslid}.jsonl`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user