Skip to content

Commit

Permalink
Fix #7: Whitespace before first state parameter now optional
Browse files Browse the repository at this point in the history
  • Loading branch information
pschillinger committed Sep 30, 2017
1 parent d100af3 commit daeb0e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/io_stateparser.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ IO.StateParser = new (function() {
// Inherits from EventState, state description is directly below class definition.
var name_desc_pattern = /class (\w+)\(EventState\):(?:\n\r?\s+(?:'''|""")\n?\r?((?:\s*(?:.*?)\n?\r?\s*)*?)(?:'''|"""))?/i;
// Returns all params as list
var param_pattern = /def __init__\(self, ([^)]+)\):/i;
var param_pattern = /def __init__\(self, ?([^)]+)\):/i;
// Extracts parameters of super class call, such as outcomes.
var super_pattern = /super\(.*\)\.__init__\(((?:.|\s)*?)\)\n/i;
// Has two matches: 1) key 2) list
Expand Down

0 comments on commit daeb0e0

Please sign in to comment.