Merge pull request #1652 from dm4/fix-ext-match

fix extension matching for current file
pull/1/head
yann300 6 years ago committed by GitHub
commit dfa53b0b87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/app/tabs/compile-tab.js

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

Loading…
Cancel
Save