chrisfcarroll/MailMerge

Case sensitivity

AllTaken opened this issue · 4 comments

Merge fields appear to be case sensitive, when performing a merge using this library.
Merge fields are not usually case sensitive, when merging using Microsoft Word.

Would it be possible to change this behavior, or at least make it configurable?

It would! You could do a pull request or I can get to it in a couple of days, later this week.

No configuration is needed - both Word and the ECMA standard agree that :

The names of fields are alphabetic tokens [Example: Some field-type names are ASK, COMMENTS, NEXT, and SET. end example]. These tokens are called field-type names. Field-type names are case-insensitive. [Example: The field-type names DATE, Date, dAtE, and date are equivalent. end example]

I'll try to cook up a reasonable PR. Thank you.

PR #5 should fix this.