@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.
- package/lib/cli.js +1 -1
- 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(
|
|
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