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

Validate event link in Google Forms #196

Open
tuukka opened this issue Feb 23, 2018 · 1 comment
Open

Validate event link in Google Forms #196

tuukka opened this issue Feb 23, 2018 · 1 comment

Comments

@tuukka
Copy link
Contributor

tuukka commented Feb 23, 2018

Many of the current event URLs don't seem to pass the regular expression validation in the map code. Perhaps the form in Google Forms should instruct to start the URL with http or https, and "Response validation" could be configured with the same regex (currently ^http): https://support.google.com/docs/answer/3378864

(Could disallow spaces as well to validate URLs like the Los Angeles City Hall invalid one that currently ends (sample agenda).)

@tuukka tuukka changed the title Valid Validate event link in Google Forms Feb 23, 2018
@millette
Copy link

In my own little processor, I used normalize-url with these options:

{
  stripWWW: false,
  removeTrailingSlash: false,
  removeDirectoryIndex: true,
  sortQueryParameters: false
}

As you can see here:
https://github.com/millette/jido2018/blob/master/scripts/index.js#L7

You'll find the results here: https://github.com/millette/jido2018/blob/master/jido2018.json

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