@prantlf/jsonlint 11.2.0 → 11.2.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.
- package/lib/cli.js +1 -1
- package/package.json +1 -1
package/lib/cli.js
CHANGED
|
@@ -155,7 +155,7 @@ function processFile (file) {
|
|
|
155
155
|
const original = readFileSync(file, 'utf8')
|
|
156
156
|
let source = processContents(original, file)
|
|
157
157
|
if (options.inPlace) {
|
|
158
|
-
const lines = original.split(
|
|
158
|
+
const lines = original.split(/\r?\n/)
|
|
159
159
|
const newLine = !lines[lines.length - 1]
|
|
160
160
|
if (options.trailingNewline === true ||
|
|
161
161
|
(options.trailingNewline !== false && newLine)) {
|
package/package.json
CHANGED