Live data from Hacker News

Searching for “notepad” on DuckDuckGo yields zero results

duckduckgo.com

21–30 of 44 posts

Re: Searching for “notepad” on DuckDuckGo yields zero results

#21
post #15
post #12

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: In…

Curious that the error does not occur when searching for "Notepad+": https://duckduckgo.com/?q=notepad%2B&t=ffab&atb=v101-1&ia=we...

It's because a single plus '+' is valid in a regex. A double plus '++' is invalid.

Re: Searching for “notepad” on DuckDuckGo yields zero results

#22
post #12

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: In…

Corroborating this to some extent, the “HTML” and “lite” versions works fine in both cases:

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

Re: Searching for “notepad” on DuckDuckGo yields zero results

#23
post #18
post #12

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: In…

"cpp" seems to work fine though, and returns many results that include "c++"... https://duckduckgo.com/?q=cpp&t=ffab&ia=web

[deleted]

Re: Searching for “notepad” on DuckDuckGo yields zero results

#24
post #12

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: In…

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.

Re: Searching for “notepad” on DuckDuckGo yields zero results

#26
post #12

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: In…

Speaking of control characters breaking things, HN ate the * characters in your post and turned the text into italics instead.

Re: Searching for “notepad” on DuckDuckGo yields zero results

#27
post #25

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. UPDATE: this should be fixed now.

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.

Re: Searching for “notepad” on DuckDuckGo yields zero results

#28
post #25

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. UPDATE: this should be fixed now.

Thanks for acknowledging it and sharing helpful info. It seemed bizarre for a short moment.

Re: Searching for “notepad” on DuckDuckGo yields zero results

#30
post #18
post #12

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: In…

"cpp" seems to work fine though, and returns many results that include "c++"... https://duckduckgo.com/?q=cpp&t=ffab&ia=web

But "c plus plus" breaks
Post reply on HN