79525276

Date: 2025-03-21 11:15:39
Score: 0.5
Natty:
Report link

The issue here is with the line endings. I ran the same code but when I used CRLF line endings, I got the Hash eqaw4I9IoPldjffqieTL/h7z0ejA9zc/fyXt+05KMl4=.

As Jon Skeet mentioned, this is likely because you have autocrlf=true on your Git Repo.

You can either disable this (you may need to re-commit a new version of the jQuery.-3.7.1.min.js file, I am not too sure).

An alternate solution is to force fileContents to use LF line endings. The below code will achieve that :

    var fileContents = TestResources.GetFileContents("MyTests.Resources.jquery-3.7.1.min.js").Replace("\r\n", "\n").Replace("\r", "\n");

This will ensure that fileContents is normalized to use LF Line endings.

I hope this helps, I am new to posting on StackOverflow so just trying to get the hang of it at the moment!

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Whitelisted phrase (-1): hope this helps
  • Whitelisted phrase (-1): solution is
  • RegEx Blacklisted phrase (1.5): I am new
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: nosniktaj