From ebc1d8f001fd6305d24b7c712e96f5782d71ba5a Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Wed, 23 Jun 2021 22:21:53 -0400 Subject: [PATCH] Fix FA#to_s to show correct destination state --- lib/imbecile/regex/fa.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/imbecile/regex/fa.rb b/lib/imbecile/regex/fa.rb index 8182d0b..1115cac 100644 --- a/lib/imbecile/regex/fa.rb +++ b/lib/imbecile/regex/fa.rb @@ -32,7 +32,7 @@ module Imbecile end end accepts_s = transition.destination.accepts ? " #{transition.destination.accepts}" : "" - rv += " #{range_s} => #{id}#{accepts_s}\n" + rv += " #{range_s} => #{states[transition.destination]}#{accepts_s}\n" end end rv