Commit c6432b1
[gephi-lite] Fix extractGraphFromFile
When opening a reomte file, some will have query params, such as a pre-signed url to a cloud hosted storage bucket.
Ex: https://www.example.com/graph.gexf?token=XXX
But url like https://www.example.com/index.php?file=graph.gexf are also
valid, as well as https://www.example.com/xzy (which can be a shared
link with a valid file).
So computing the file format from the filename is not a the good way to
do it, we need to parse the file content and check what it is.1 parent 8d1f50c commit c6432b1
File tree
9 files changed
+7404
-25
lines changed- packages/gephi-lite/src
- core
- errors
- file
- testGraphs
- locales
9 files changed
+7404
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
0 commit comments