Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/bang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ export const bangs = [
t: "t3",
u: "https://www.t3.chat/new?q={{{s}}}",
},
{
c: "Online Services",
d: "www.perplexity.ai",
r: 0,
s: "Perplexity",
sc: "Perplexity",
t: "ppx",
u: "https://www.perplexity.ai/search/new?focus=internet&q={{{s}}}",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a syntax error in the URL template for the Perplexity bang. The current implementation has mismatched curly braces:

"https://www.perplexity.ai/search/new?focus=internet&q={{s}}}"

This has two opening braces but three closing braces, which will cause malformed search queries.

The correct format should be:

"https://www.perplexity.ai/search/new?focus=internet&q={{{s}}}"

With three opening and three closing braces, consistent with other bang definitions in the file.

Suggested change
u: "https://www.perplexity.ai/search/new?focus=internet&q={{s}}}",
u: "https://www.perplexity.ai/search/new?focus=internet&q={{{s}}}",

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

},
{
c: "Tech",
d: "www.01net.com",
Expand Down Expand Up @@ -122061,5 +122070,5 @@ export const bangs = [
sc: "Online",
t: "\u10d0\u10e1\u10e2\u10e0\u10dd",
u: "http://astronet.ge/?s={{{s}}}",
},
}
];