@pollinations/cli 0.1.37 → 0.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var init_package = __esm({
14
14
  "package.json"() {
15
15
  package_default = {
16
16
  name: "@pollinations/cli",
17
- version: "0.1.37",
17
+ version: "0.1.38",
18
18
  description: "The Pollinations CLI \u2014 for humans, AI agents, and everything in between",
19
19
  type: "module",
20
20
  bin: {
@@ -809,7 +809,7 @@ var docsCommand = new Command3("docs").description("Show Pollinations API docume
809
809
  }
810
810
  const needle = endpoint.replace(/^\//, "").toLowerCase();
811
811
  const headingMatches = sections.filter(
812
- (s) => s.split("\n")[0].toLowerCase().includes(needle)
812
+ (s) => /^#{1,6} /.test(s) && s.split("\n")[0].toLowerCase().includes(needle)
813
813
  );
814
814
  const matches = headingMatches.length ? headingMatches : sections.filter(
815
815
  (s) => s.toLowerCase().includes(needle)