Skip to content

Commit

Permalink
Merge pull request #89 from simon123h/master
Browse files Browse the repository at this point in the history
Stop stripping mainFiles extension before build
  • Loading branch information
James-Yu authored Jul 30, 2017
2 parents b0e73a6 + ffd5110 commit 5ae8f2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/builder.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ class Builder extends Disposable
cmd = cmd.split('%BIB').join(bibCompiler)
cmd = cmd.split('%ARG').join(args)
cmd = cmd.split('%DOC').join(
@escapeFileName(path.basename(@latex.mainFile).replace(/\.[^/.]+$/,""))
# get basename and strip .tex extension for bibtex compitability
@escapeFileName(path.basename(@latex.mainFile).replace(/\.tex$/, ''))
)
@cmds.push cmd

Expand Down

0 comments on commit 5ae8f2c

Please sign in to comment.