aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ethchain/asm.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/ethchain/asm.go b/ethchain/asm.go
index 5f901f8a2..a6c85cb60 100644
--- a/ethchain/asm.go
+++ b/ethchain/asm.go
@@ -106,6 +106,7 @@ func Disassemble(script []byte) (asm []string) {
}
func PreProcess(data string) (mainInput, initInput string) {
+ // Regexp for parsing anything between brackets
reg := "\\(\\)\\s*{([\\d\\w\\W\\n\\s]+?)}"
mainReg := regexp.MustCompile("main" + reg)
initReg := regexp.MustCompile("init" + reg)