It seems that anything that returns "++" (EDIT: in the "About" box), in this case "Notepad++", breaks their internal regex because it seems not to be sanitized properly
The breaking code using chrome dev tools seems to be:
n = new RegExp("^(https?://)?([\\w\\.-_]\\.)?" + o.toLowerCase().replace(/[-\s]/g, "") + "\\.");
In this case "o" is "Notepad++" which might be the first result.
The browser returns this error:
Invalid regular expression: /^(https?://)?([\w\.-_]\.)?notepad++\./: Nothing to repeat
It's not quite anything that returns a '++', but I think any search term that creates a '++' (or perhaps any invalid regex syntax) inside the main info box result.
Hi all (CEO & Founder, DuckDuckGo here). Looks like something may have broken in a release that went out today -- it is triggering a JS error. We're looking into it now and should have it resolved soon.
Fixed for me (UK), would be interesting to hear what the error was. I did so love the time when you were developing DDG and posting to HN about your progress and getting suggestions from the community and whatnot. So glad it worked out for you.
If I search for something, I'll get a list of results, potentially even a featured wikipedia entry or whatnot on the right. If I click on one of the top ranked links and realize it's not what I want, the results page is completely different when I return to it via the back button. e.g. just now I wanted to go back and click on that featured wikipedia link but it's gone now.
FWIW this is the sort of behavior that means I just append '!g' to most queries.
Hello!
Why has DDG gotten so worse lately?
I thought it was just me but I keep reading the same experience on HN.
There is no way you don't know about this?
Asking as a long time user and at a time even DDG evangelist.
Using POST, HTTP/1.0 and lite.duckduckgo.com, with no Javascript of course, I got results. Not suggesting any of those are requirements. I'm just reporting that the no results experience is not universal.
Below is a quick script for DuckDuckGo searching, if only want first page of results. yy025 makes HTTP from URLs. yy046 URL-encodes input, e.g., "+" to %2B. The address 127.22.10.55 is a TLS forward proxy.
If you set a breakpoint there, the value it is trying to replace is "Notepad++" rather than "notepad", gotten from the Heading of "http://www.notepad-plus-plus.org" further up in the logic chain. Looks like the plus signs are incorrectly being added to the RegEx
Was someone trying to be funny, to change a "notepad" search for "notepad++", forgetting that + has a specific meaning in regex? Same error occurs with a search for "notepad++", though, but not "notepad+", funnily enough.
I feel like Google has the same issue. Nowadays, searching for anything on Google yields between 3 and 17 results. Few years ago, I received millions of results for the same searches.
It seems to have to do with some kind of metadata is fetched and then used as a regular expression (to change markup in some other part of the page?); it's assumed that the text can be used as a regular expression without quotation but in the case of the doubled "+" character it becomes a non-valid RE.
Unrelated to this issue, but I get peeved when HN commenters rave how DuckDuckGo results are far superior to Google's, and yet the other day I entered "DuckDNS" on DDG, and it was nowhere to be scene in the top 3 pages. Meanwhile on Google and Brave Search, it is the first result.
jampa|2 years ago
The breaking code using chrome dev tools seems to be:
n = new RegExp("^(https?://)?([\\w\\.-_]\\.)?" + o.toLowerCase().replace(/[-\s]/g, "") + "\\.");
In this case "o" is "Notepad++" which might be the first result.
The browser returns this error:
Invalid regular expression: /^(https?://)?([\w\.-_]\.)?notepad++\./: Nothing to repeat
Also happens with C++ https://duckduckgo.com/?q=c%2B%2B&t=ffab&ia=web
vikingerik|2 years ago
chrismorgan|2 years ago
https://html.duckduckgo.com/html/?q=notepad
https://html.duckduckgo.com/html/?q=c%2B%2B
https://lite.duckduckgo.com/lite/?q=notepad
https://lite.duckduckgo.com/lite/?q=c%2B%2B
buddydvd|2 years ago
But not that's not what caused the problem mentioned in this post.
(edited for clairifcation)
Svip|2 years ago
cypherpunks01|2 years ago
Groxx|2 years ago
yegg|2 years ago
UPDATE: this should be fixed now.
pbhjpbhj|2 years ago
inferiorhuman|2 years ago
If I search for something, I'll get a list of results, potentially even a featured wikipedia entry or whatnot on the right. If I click on one of the top ranked links and realize it's not what I want, the results page is completely different when I return to it via the back button. e.g. just now I wanted to go back and click on that featured wikipedia link but it's gone now.
FWIW this is the sort of behavior that means I just append '!g' to most queries.
daqhris|2 years ago
Gerard0|2 years ago
Asking as a long time user and at a time even DDG evangelist.
Cheers!
marginalia_nu|2 years ago
1vuio0pswjnm7|2 years ago
Here is the first page of results:
Below is a quick script for DuckDuckGo searching, if only want first page of results. yy025 makes HTTP from URLs. yy046 URL-encodes input, e.g., "+" to %2B. The address 127.22.10.55 is a TLS forward proxy.sys32768|2 years ago
>d.7527c434450544045365.js:1 Uncaught (in promise) SyntaxError: Invalid regular expression: /^(https?://)?([\w\.-_]*\.)?notepad++\./: Nothing to repeat (at
jzig|2 years ago
Svip|2 years ago
badrabbit|2 years ago
nipperkinfeet|2 years ago
WeylandYutani|2 years ago
jepler|2 years ago
It seems to have to do with some kind of metadata is fetched and then used as a regular expression (to change markup in some other part of the page?); it's assumed that the text can be used as a regular expression without quotation but in the case of the doubled "+" character it becomes a non-valid RE.
letmevoteplease|2 years ago
Mountain_Skies|2 years ago
devonnull|2 years ago
Strange, very strange.
notorandit|2 years ago
snerc|2 years ago
superhumanuser|2 years ago
It would load a carousel at the top with results for like jobs, recipes, etc.
It used regex to match the search query. Looks like they have a bad one.
massinstall|2 years ago
toastercat|2 years ago
WeylandYutani|2 years ago