diff options
Diffstat (limited to 'nfa/src')
-rw-r--r-- | nfa/src/default/regex.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nfa/src/default/regex.rs b/nfa/src/default/regex.rs index 9b5fab1..8185ca5 100644 --- a/nfa/src/default/regex.rs +++ b/nfa/src/default/regex.rs @@ -558,6 +558,8 @@ impl<T: GraphLabel> DefaultRegex<T> { builder_mut.append(other.graph); + self.types.extend(other.types); + if let Some(root) = self.root { // Deliberately ignore errors here. let _ = builder_mut.add_edge(root, old_len, ()); |