rawDate = fileMatch('^Date:\s*.*', 'i');
'\s" is nonsense here, and presumably that should read:
- Code: Select all
rawDate = fileMatch('^Date:\\s*.*','i');
though it doesn't cause a fail.
And better:
- Code: Select all
rawDate = fileMatch('^Date:.*', 'i');
or indeed (as per RFC):
- Code: Select all
rawDate = fileMatch('^Date:.*');