This commit is contained in:
deadsmond 2019-11-24 22:40:55 +01:00
parent 7ee1bdc979
commit cf8393ebe0

View File

@ -21,6 +21,7 @@ class automata:
def test_string(self, text):
self.state = '0'
text = text.replace('\n', '')
for i in text:
self.state = self.get_node_transition([self.state, i])
if self.state == None: