fix extension matching for current file

pull/1/head
dm4 6 years ago
parent 236f26a839
commit 731765b723
No known key found for this signature in database
GPG Key ID: 284633CF9C3DCF17
  1. 2
      src/app/tabs/compile-tab.js

@ -476,7 +476,7 @@ module.exports = class CompileTab {
self._deps.editor.clearAnnotations()
var currentFile = self._deps.config.get('currentFile')
if (currentFile) {
if (/.(.sol)$/.exec(currentFile)) {
if (/\.sol$/.exec(currentFile)) {
// only compile *.sol file.
var target = currentFile
var sources = {}

Loading…
Cancel
Save