HTML export Javascript regular expression and y2k fixes
Robby Stephenson
robby at periapsis.org
Sun Sep 28 23:40:57 MDT 2008
On Saturday 27 September 2008, Jake Maciejewski wrote:
> See attached patch.
>
> The regular expressions for date matching have nested parenthesis that
> don't work as intended with 4-digit years. In sort_yymmdd, for example,
> mtch[2] ends up being the first 2 digits of the 4-digit year, not the
> month. The month is assigned to d, and the date is disregarded in the
> sort.
>
> I also added ? marks to match 1-digit days (the month part of the
> pattern already had this) since sort_yymmdd and the others have checks
> for 1-digit days.
>
> Finally, I noticed that the y2k handling code was prepending 19 on
> 4-digit years, so I made it conditional on the year being 2-digit.
Thanks, just applied your patch.
Robby
More information about the tellico-users
mailing list