lib/packwerk/package.rb in packwerk-3.2.1 vs lib/packwerk/package.rb in packwerk-3.2.2
- old
+ new
@@ -40,10 +40,10 @@
sig { params(path: String).returns(T::Boolean) }
def package_path?(path)
return true if root?
- path.start_with?(@name)
+ path.start_with?(@name + "/")
end
sig { params(other: T.untyped).returns(T.nilable(Integer)) }
def <=>(other)
return nil unless other.is_a?(self.class)