Skip to content
Snippets Groups Projects
Unverified Commit 0e0f5bb9 authored by Chris Truter's avatar Chris Truter Committed by GitHub
Browse files

Strip tsv file extension (#40702)

parent 7efd8d36
No related branches found
No related tags found
No related merge requests found
......@@ -31,8 +31,8 @@ const validTestFiles = [
},
{
fileName: "pokedex.tsv",
tableName: "pokedex_tsv", // TODO, remove _tsv extension when backend logic changes
humanName: "Pokedex.tsv", // TODO, remove .tsv extension when backend logic changes
tableName: "pokedex",
humanName: "Pokedex",
rowCount: 202,
},
];
......
......@@ -635,7 +635,7 @@
(try
(let [timer (start-timer)
driver (driver.u/database->driver database)
filename-prefix (or (second (re-matches #"(.*)\.csv$" filename))
filename-prefix (or (second (re-matches #"(.*)\.(csv|tsv)$" filename))
filename)
table-name (->> (str table-prefix filename-prefix)
(unique-table-name driver)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment