reffy 8.0.0 → 8.0.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/lib/util.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reffy",
3
- "version": "8.0.0",
3
+ "version": "8.0.1",
4
4
  "description": "W3C/WHATWG spec dependencies exploration companion. Features a short set of tools to study spec references as well as WebIDL term definitions and references found in W3C specifications.",
5
5
  "repository": {
6
6
  "type": "git",
package/src/lib/util.js CHANGED
@@ -816,7 +816,7 @@ async function expandSpecResult(spec, baseFolder, properties) {
816
816
  // Also drop header that may have been added when extract was
817
817
  // serialized.
818
818
  if (contents.startsWith('// GENERATED CONTENT - DO NOT EDIT')) {
819
- const hasWindowsEndings = contents.indexOf('\r\n');
819
+ const hasWindowsEndings = contents.includes('\r\n\r\n');
820
820
  if (hasWindowsEndings) {
821
821
  const endOfHeader = contents.indexOf('\r\n\r\n');
822
822
  contents = contents.substring(endOfHeader + 4)