Skip to content

Futher work on extension parsing #18

@MichaelPachec0

Description

@MichaelPachec0

Regarding this line

let cType = fileTypes[file.split('.')[1]] //splits the string into an array of 2 elements, from wherever '.' is and returns the extension

Im requesting a couple of changes

  • Ideally the comment should be in its own line
  • There can be some instances where files can have a . in a filename i.e file.extrabit.html, this can be fixed by breaking up the one liner setting a variable to the split method. We can then use length-1 to use the last entry in the array. This ensures that we only take the suffix (the extension) from the file path.

Metadata

Metadata

Assignees

Labels

backendbugSomething isn't workinghelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions