aici icon indicating copy to clipboard operation
aici copied to clipboard

rx matching empty string

Open mmoskal opened this issue 2 years ago • 0 comments

We currently fail here, for simple rx like '\d*'

impl FunctionalRecognizer<RecRxState> for RecRx {
    fn initial(&self) -> RecRxState {
        self.dfa
            .universal_start_state(regex_automata::Anchored::Yes)
            .expect("dfa has no universal start state; make sure it doesn't match empty string")
    }

mmoskal avatar Oct 17 '23 00:10 mmoskal