We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f203826 commit 7eba424Copy full SHA for 7eba424
src/main.rs
@@ -526,6 +526,8 @@ impl Executor {
526
// Search by regular expression
527
"regex" => {
528
let pattern = self.pop_stack().get_string();
529
+ let text = self.pop_stack().get_string();
530
+
531
let pattern: Regex = match Regex::new(pattern.as_str()) {
532
Ok(i) => i,
533
Err(e) => {
@@ -535,8 +537,6 @@ impl Executor {
535
537
}
536
538
};
539
- let text = self.pop_stack().get_string();
-
540
let mut list: Vec<Type> = Vec::new();
541
for i in pattern.captures_iter(text.as_str()) {
542
list.push(Type::String(i[0].to_string()))
0 commit comments