Skip to content

Comments

Update shared-component-logic.js#34

Open
JaysonLovesJesus wants to merge 2 commits intonisargkolhe:mainfrom
JaysonLovesJesus:patch-1
Open

Update shared-component-logic.js#34
JaysonLovesJesus wants to merge 2 commits intonisargkolhe:mainfrom
JaysonLovesJesus:patch-1

Conversation

@JaysonLovesJesus
Copy link

Instant suggestions behave like a regular address bar: suggested second or first when contains a space.

Instant suggestions behave like a regular address bar: suggested second or first when contains a space.
@JaysonLovesJesus
Copy link
Author

JaysonLovesJesus commented Jan 21, 2026

This creates a problem with manually typing a full url.

I've been using this and its seems to do what I want.

const first = instantSuggestion.metadata?.query?.match(/[^A-z]/);
combined.splice(first ? 0 : 1, 0, instantSuggestion);

Instant suggestion is only second when the query is only letters.
@nisargkolhe
Copy link
Owner

can you add before and after for this change?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants