Skip to content

Commit

Permalink
Fix newly found issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija committed Nov 14, 2022
1 parent 494f10b commit 7d498ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ameba/spec/annotated_source.cr
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class Ameba::Spec::AnnotatedSource
private def message_to_regex(expected_annotation)
String.build do |io|
offset = 0
while (index = expected_annotation.index(ABBREV, offset))
while index = expected_annotation.index(ABBREV, offset)
io << Regex.escape(expected_annotation[offset...index])
io << ".*?"
offset = index + ABBREV.size
Expand Down

0 comments on commit 7d498ad

Please sign in to comment.