Artado-Project / ArtadoProxy

Artado Proxy is an API proxying search queries to various engines
GNU Affero General Public License v3.0
0 stars 2 forks source link

Character issue in Google results #2

Closed ardatdev closed 2 weeks ago

ardatdev commented 2 weeks ago

As you can see in the code below

const urlnospace = displayUrl.replace(/ /g, '');
let url = urlnospace.replace(/›/g, '');

This code first replaces the spaces in the displayUrl. Then should change the "›" character into "/". But it doesn't work. I have searched and tried many things.

Example on how it should work:

displayUrl = "onedio.com › test" urlnospace = "onedio.com›test" url = "onedio.com/test"

The problem is in the last step.

yasinldev commented 2 weeks ago

please see c79031a