Colin Eberhardt

Results 151 issues of Colin Eberhardt

I'm using the following to load a multi-line file into a string array: ~~~ const fileOrNull: Descriptor | null = FileSystem.open(filename, "r"); if (fileOrNull == null) { throw new Error("Could...

I'm pretty sure it used to, but for some reason iOS Safari no longer sends referrer headers, which means that the applause button is no longer able to 'detect' the...

Currently version numbers are managed by semantic release, however, I'd like to have it [in the code too](https://github.com/ColinEberhardt/applause-button/blob/master/src/applause-button.js#L3) so that I can log client version information

That damned 404 just annoys me each time I open up the inspector!

This could be used to make sure we only fire the HTTP request when visible https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API

yeah ... I know ... should have done this from the beginning! It's a simple component, but the complexity is growing!

Probably not IE, but Edge, and newer version fo Safari, Chrome, FF

https://github.com/webcomponents/custom-elements This should remove the need to bundle the polyfil

enhancement

For the rather complex regex `"^((?:[+-]\\d{6}|\\d{4}))(?:-(\\d{2})-(\\d{2})|(\\d{2})(\\d{2}))(?:(?:T|\\s+)(\\d{2})(?::(\\d{2})(?::(\\d{2})(?:[.,](\\d{1,9}))?)?|(\\d{2})(?:(\\d{2})(?:[.,](\\d{1,9}))?)?)?)?(?:([zZ])|(?:([+-])([01][0-9]|2[0-3])(?::?([0-5][0-9])(?::?([0-5][0-9])(?:[.,](\\d{1,9}))?)?)?)?)(?:\\[((?:(?:\\.\\.[-A-Za-z._]{1,12}|\\.[-A-Za-z_][-A-Za-z._]{0,12}|_[-A-Za-z._]{0,13}|[a-zA-Z](?:[A-Za-z._][-A-Za-z._]{0,12})?|[a-zA-Z]-(?:[-._][-A-Za-z._]{0,11})?|[a-zA-Z]-[a-zA-Z](?:[-._][-A-Za-z._]{0,10})?|[a-zA-Z]-[a-zA-Z][a-zA-Z](?:[A-Za-z._][-A-Za-z._]{0,9})?|[a-zA-Z]-[a-zA-Z][a-zA-Z]-(?:[-._][-A-Za-z._]{0,8})?|[a-zA-Z]-[a-zA-Z][a-zA-Z]-[a-zA-Z](?:[-._][-A-Za-z._]{0,7})?|[a-zA-Z]-[a-zA-Z][a-zA-Z]-[a-zA-Z][a-zA-Z](?:[-._][-A-Za-z._]{0,6})?)(?:\\/(?:\\.[-A-Za-z_]|\\.\\.[-A-Za-z._]{1,12}|\\.[-A-Za-z_][-A-Za-z._]{0,12}|[A-Za-z_][-A-Za-z._]{0,13}))*|Etc\\/GMT[-+]\\d{1,2}|(?:[+\\u2212-][0-2][0-9](?::?[0-5][0-9](?::?[0-5][0-9](?:[.,]\\d{1,9})?)?)?)))\\])?(?:\\[u-ca-((?:[A-Za-z0-9]{3,8}(?:-[A-Za-z0-9]{3,8})*))\\])?$"`, the JS implementation when matching the string `19761118` yields the following result: ~~~ '[ "19761118", "1976", null, null, "11", "18", null, null, null, null,...

bug