lib/spoom/context/sorbet.rb in spoom-1.2.4 vs lib/spoom/context/sorbet.rb in spoom-1.3.0
- old
+ new
@@ -73,16 +73,16 @@
# We need to simulate the behavior of Sorbet's `--ignore` flag.
#
# From Sorbet docs on `--ignore`:
# > Ignores input files that contain the given string in their paths (relative to the input path passed to
# > Sorbet). Strings beginning with / match against the prefix of these relative paths; others are substring
- # > matchs. Matches must be against whole folder and file names, so `foo` matches `/foo/bar.rb` and
+ # > matches. Matches must be against whole folder and file names, so `foo` matches `/foo/bar.rb` and
# > `/bar/foo/baz.rb` but not `/foo.rb` or `/foo2/bar.rb`.
string = if string.start_with?("/")
# Strings beginning with / match against the prefix of these relative paths
File.join(absolute_path, string)
else
- # Others are substring matchs
+ # Others are substring matches
File.join(absolute_path, "**", string)
end
# Matches must be against whole folder and file names
"#{string.delete_suffix("/")}{,/**}"
end