aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-04-16 10:07:52 +0800
committerobscuren <geffobscura@gmail.com>2014-04-16 10:07:52 +0800
commitc5729d7ecc564f8eff6df565173a4f5cc6c43cb0 (patch)
treeb0e957a369841a110ea36a301c2144aacd977983 /ethchain
parentd811920d8b5643b944a7df58d5d75095539242c4 (diff)
downloaddexon-c5729d7ecc564f8eff6df565173a4f5cc6c43cb0.tar.gz
dexon-c5729d7ecc564f8eff6df565173a4f5cc6c43cb0.tar.zst
dexon-c5729d7ecc564f8eff6df565173a4f5cc6c43cb0.zip
comments
Diffstat (limited to 'ethchain')
-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)