Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comma after url #3

Closed
LeventErkok opened this issue Feb 7, 2019 · 6 comments
Closed

Comma after url #3

LeventErkok opened this issue Feb 7, 2019 · 6 comments

Comments

@LeventErkok
Copy link

Is this intentional?

$ cat a
testing http://www.cnn.com, here
$ brok a
*** Checking URLs ***
Fetching complete

*** Results ***

[a]
- Could not connect: http://www.cnn.com,

I can see the argument that ',' shouldn't terminate perhaps; but followed by a space (or end of line/file), it might be a good terminator?

@smallhadroncollider
Copy link
Owner

Hmm. This was my first attempt at writing a parser. I think it's a bit too lenient about where characters can be in a URL. Think I need to look at the URL spec in a bit more detail.

I've added a failing test for this. Will try and get it sorted in the next few days.

@smallhadroncollider
Copy link
Owner

Got the parser working on the above example, but it seems to have broken my caching file parsing...

@LeventErkok
Copy link
Author

Thanks! I'd appreciate a new hackage release if it's not too much trouble!

@smallhadroncollider
Copy link
Owner

Done

@smallhadroncollider
Copy link
Owner

Please do let me know if you find any other URLs that don't work as expected. Or if you're aware of a big list of URLs that I can test against. I'm mostly just using my teaching notes for tests, but that's a fairly limited set.

@LeventErkok
Copy link
Author

Just tested it, and looks great for my use case! Much appreciated. (Though I do have a feature request, will open a new issue.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants