Open FedirAlifirenko opened 5 years ago
Hi! Can you check if this link works with this pr? https://github.com/Deepwalker/trafaret/pull/36
Actually I'm not sure about right behavior. It's can be that link is actually incorrect. Will need to reread rfc
Proof of URL correctness is hard.
I suspect that regex-based solution is supposed to provide false positives by design :(
Even much more complicated yarl
is not free from such things.
Well, yarl.URL()
works pretty good but yarl.URL.build()
cannot parse valid args now :(
@asvetlov
but yarl.URL.build() cannot parse valid args now
What are you mean ? It seems, everything works:
fedor@ubuntu:~$ python -c "import yarl; print(yarl.URL.build(host='example.com', scheme='https', path='/path\xa0abc'))"
https://example.com/path%C2%A0abc
fedor@ubuntu:~$ python -V
Python 3.7.3
fedor@ubuntu:~$ pip list | grep yarl
yarl 1.3.0
Hi @Deepwalker . I found the next validation error for working url
'https://www.dior.com/fr_fr/maquillage/adoptez-le-look-du-defile-croisiere\xa02020'
Is it expected behavior? What do you think?