Extra characters matched as requirements.txt package links
Summary
Lines using the compatibility operator (~=) like pytest~=3.0 get pytest~ matched as the package name.
Steps to reproduce
Example Project
What is the current bug behavior?
The line is transformed into [pytest~](https://pypi.python.org/pypi/pytest~)=3.0
What is the expected correct behavior?
It should be [pytest](https://pypi.python.org/pypi/pytest)~=3.0 instead.
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com