Fix spanning_regex to_code method
Merge pull request #32 from reyesyang/master

Fix spanning_regex to_code method