Commit 25edaefe authored by aniket-engg's avatar aniket-engg Committed by Aniket

assertCommand removed

parent 2c9149e6
......@@ -22,7 +22,6 @@ export class HardhatClient extends PluginClient {
}
compile (cmd: string) {
// assertCommand(cmd)
const options = { cwd: this.currentSharedFolder, shell: true }
const child = spawn(cmd, options)
let result = ''
......@@ -42,14 +41,3 @@ export class HardhatClient extends PluginClient {
})
}
}
/**
* Validate that command can be run by service
* @param cmd
*/
function assertCommand (cmd) {
const regex = '^hardhat\\s[^&|;]*$'
if (!RegExp(regex).test(cmd)) { // git then space and then everything else
throw new Error('Invalid command for service!')
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment