opendataday icon indicating copy to clipboard operation
opendataday copied to clipboard

Validate event link in Google Forms

Open tuukka opened this issue 7 years ago • 1 comments

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 avatar Feb 23 '18 09:02 tuukka

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

millette avatar Feb 25 '18 18:02 millette