We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 646f1a5 commit 6e55cebCopy full SHA for 6e55ceb
scaladoc-js/main/src/searchbar/engine/Matchers.scala
@@ -25,4 +25,4 @@ case class ByName(query: String) extends Matchers:
25
}
26
27
case class ByKind(kind: String) extends Matchers:
28
- def apply(p: PageEntry): Int = p.fullName.split(" ").headOption.filter(_.equalsIgnoreCase(kind)).fold(-1)(_ => 1)
+ def apply(p: PageEntry): Int = if p.kind.equalsIgnoreCase(kind) then 1 else -1
0 commit comments