arn-rawmime 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arn-rawmime",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "A lightweight, dependency-free raw MIME email builder with DKIM support.",
5
5
  "author": "ARNDESK",
6
6
  "type": "module",
@@ -167,13 +167,13 @@ export const parseMail = async ({ rawData }) => {
167
167
  if (html) {
168
168
  const usernameMatch = html.match(usernameRegex);
169
169
  if (usernameMatch && usernameMatch[1]) {
170
- username = usernameMatch[1].trim();
170
+ username = usernameMatch[1].trim().toLowerCase();
171
171
  }
172
172
  }
173
173
  if (!username && text) {
174
174
  const usernameMatch = text.match(usernameRegex);
175
175
  if (usernameMatch && usernameMatch[1]) {
176
- username = usernameMatch[1].trim();
176
+ username = usernameMatch[1].trim().toLowerCase();
177
177
  }
178
178
  }
179
179