aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2023-12-10 20:50:35 +0200
committeromagdy7 <omar.professional8777@gmail.com>2023-12-10 20:50:35 +0200
commit180572c70477e78c43c745d2331ebf4d39d9ff10 (patch)
treebf09fc9d4df1d5d638e339b56a69d583d2c7ee16 /src/main.rs
parent2419f52d434096edebab85b3fa7141bcfa584583 (diff)
downloadrex-180572c70477e78c43c745d2331ebf4d39d9ff10.tar.xz
rex-180572c70477e78c43c745d2331ebf4d39d9ff10.zip
Fixed a bug where it wouldn't match spacesHEADmaster
Diffstat (limited to 'src/main.rs')
-rwxr-xr-xsrc/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0fa03d5..14919f2 100755
--- a/src/main.rs
+++ b/src/main.rs
@@ -5,10 +5,11 @@ use regex::*;
fn test(regex: &str, input: &str) -> bool {
let regex = Regex::new(regex);
+ println!("{:#?}", regex);
let nfa = NFA::from(regex);
nfa.matches(input)
}
fn main() {
- dbg!(test("regexisawesome", "regexisawesome"));
+ dbg!(test("aa*", "aa "));
}