dart-lang / dart-lang/pub-dev

Suggest similar package names in 404 results

Open
#6,598 1 comment 1 reaction 0 assignees View on GitHub
Type: enhancement
Dominant language
Dart
Stars
944
Forks
184
Avg merge
1d 15h
Merged PRs (30d)
12

Description

If I do: `pub.dev/packages/stringscanner` I'll get a 404.

But in practice I was probably looking for `pub.dev/packages/string_scanner`.

However, since we don't allow `stringscanner` to be published, because the name is too similar to `string_scanner`.

Maybe, we could use the same logic and do a "did you mean string_scanner?" feature.

![image](https://user-images.githubusercontent.com/149732/234502200-ea763b72-f519-4156-ac0c-68301bbc531b.png)

It seems pretty cheap, we have all the data in-memory and the fuzzy logic already exists.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.