Thanks for this awesome utility. I had one small problem with it, since we namespace our files with periods. I don't think that is all that uncommon practice. I propose the following modification:
Improve handling of filename so that only the extension is stripped. That is, strip the last segment rather than keeping the first.
Examples:
"this.file.name.js" --> "this.file.name", not "this"
"my.coffee.file.coffee" --> "my.coffee.file", not "my"
Thanks for this awesome utility. I had one small problem with it, since we namespace our files with periods. I don't think that is all that uncommon practice. I propose the following modification:
Improve handling of filename so that only the extension is stripped. That is, strip the last segment rather than keeping the first.
Examples:
"this.file.name.js" --> "this.file.name", not "this" "my.coffee.file.coffee" --> "my.coffee.file", not "my"