Skip to content

Commit

Permalink
added conllx save
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammed-abuodeh committed Aug 30, 2024
1 parent f7e5df8 commit 0e619c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -1208,6 +1208,9 @@ function saveTreeRemote() {
}

function addFileExtension(fileName, extension) {
if (fileName.endsWith('conllu') || fileName.endsWith('conllx')) {
return fileName;
}
let fileNameParts = fileName.split('.');
// need to add extension for conllx files as well
if (fileNameParts.length > 1) fileNameParts = fileNameParts.slice(0, fileNameParts.length-1);
Expand Down

0 comments on commit 0e619c4

Please sign in to comment.