Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

Commit 6a79232

Browse files
committed
fix at_beginning
1 parent f2311b5 commit 6a79232

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

interp.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,8 @@ trait MatchContextDrive {
274274
self.state().pattern_codes.len() - self.ctx().code_position
275275
}
276276
fn at_beginning(&self) -> bool {
277-
self.ctx().string_position == self.state().start
277+
// self.ctx().string_position == self.state().start
278+
self.ctx().string_position == 0
278279
}
279280
fn at_end(&self) -> bool {
280281
self.ctx().string_position == self.state().end

0 commit comments

Comments
 (0)