seomoz / url-cpp

C++ bindings for url parsing and sanitization
MIT License
19 stars 11 forks source link

Remove redundant param and query characters #3

Closed dlecocq closed 8 years ago

dlecocq commented 8 years ago

This is meant to provide the functionality from url-py:

        self.params = re.sub(r'^;+', '', str(params))
        self.params = re.sub(r'^;|;$', '', re.sub(r';{2,}', ';', self.params))
        # Strip off extra leading ?'s
        self.query = re.sub(r'^\?+', '', str(query))
        self.query = re.sub(r'^&|&$', '', re.sub(r'&{2,}', '&', self.query))

@b4hand @tammybailey @martin-seomoz

dlecocq commented 8 years ago

@tanglyh -- thought you might find this PR interesting, too

dlecocq commented 8 years ago

Comments addressed