Skip to content

Commit

Permalink
Update Crystal to 1.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfierke committed Oct 11, 2023
1 parent 9530f90 commit 46b7aa3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
crystal 1.7.3
crystal 1.10.0
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@ targets:
fincher:
main: src/cli.cr

crystal: 1.7.3
crystal: ">= 1.8.0"

license: MIT
10 changes: 5 additions & 5 deletions src/fincher/io_scanner.cr
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ module Fincher
end

def check(pattern)
match(pattern, advance: false, options: Regex::Options::ANCHORED)
match(pattern, advance: false, options: Regex::MatchOptions::ANCHORED)
end

def check_until(pattern)
match(pattern, advance: false, options: Regex::Options::None)
match(pattern, advance: false, options: Regex::MatchOptions::None)
end

def skip(bytes_count : Int)
Expand All @@ -81,11 +81,11 @@ module Fincher
end

def scan(pattern)
match(pattern, advance: true, options: Regex::Options::ANCHORED)
match(pattern, advance: true, options: Regex::MatchOptions::ANCHORED)
end

def scan_until(pattern)
match(pattern, advance: true, options: Regex::Options::None)
match(pattern, advance: true, options: Regex::MatchOptions::None)
end

def offset
Expand Down Expand Up @@ -194,7 +194,7 @@ module Fincher
last_match_str
end

private def buffer_match(pattern, advance = true, options = Regex::Options::ANCHORED)
private def buffer_match(pattern, advance = true, options = Regex::MatchOptions::ANCHORED)
match = pattern.match_at_byte_index(@buffer, @buffer_cursor, options)
if match
start = @buffer_cursor
Expand Down

0 comments on commit 46b7aa3

Please sign in to comment.