pldb
pldb copied to clipboard
Hard coded year values
Hi Breck (@breck7),
On the About page in the Citation section, the year is hardcoded:

Perhaps, something like replaceJs (as in line #32 of about.scroll) could be used for the year:

Just use a variable like CURRENT_YEAR with the appropriate JavaScript code?
The Citation section also appears in the main Readme Scroll (lines 58-71):

Could this be moved out into a separate file and then use import wherever it is required?
The one other place that I noticed a hard coded year value is in line 35 of Awis.ts crawler:

Again, could this possibly be replaced by some global variable or does it need to be year specific?
Kind Regards, Liam
Hi @celtic-coder ! That's a good point. I was thinking that someone would cite the first year something came out, but you are right it makes more sense to cite the year it was accessed since it is continually updated.
I would accept a pull request on this.