opendataday
opendataday copied to clipboard
Validate event link in Google Forms
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)
.)
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