allow compilation for file that has a suffix . e.g .sol#v1.2

pull/3094/head
yann300 6 years ago
parent 00200c6086
commit e430ed9df3
  1. 2
      src/app/tabs/compileTab/compileTab.js

@ -38,7 +38,7 @@ class CompileTab {
this.editor.clearAnnotations()
var currentFile = this.config.get('currentFile')
if (!currentFile) return
if (!/\.sol$/.exec(currentFile)) return
if (!/\.sol/.exec(currentFile)) return
// only compile *.sol file.
var target = currentFile
var sources = {}

Loading…
Cancel
Save