@prantlf/jsonlint 11.1.1 → 11.1.2

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/lib/cli.js +1 -1
  2. package/package.json +1 -1
package/lib/cli.js CHANGED
@@ -139,7 +139,7 @@ function processFile (file) {
139
139
  const original = fs.readFileSync(file, 'utf8')
140
140
  let source = parse(original, file)
141
141
  if (options.inPlace) {
142
- const lines = original.split(/\?r\n/)
142
+ const lines = original.split(/\r?\n/)
143
143
  const newLine = !lines[lines.length - 1]
144
144
  if (options.trailingNewline === true ||
145
145
  (options.trailingNewline !== false && newLine)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prantlf/jsonlint",
3
- "version": "11.1.1",
3
+ "version": "11.1.2",
4
4
  "description": "JSON/CJSON/JSON5 parser, syntax and schema validator and pretty-printer.",
5
5
  "author": "Ferdinand Prantl <prantlf@gmail.com> (http://prantl.tk)",
6
6
  "contributors": [