Skip to content

Commit

Permalink
form feed fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dangowans committed Jan 29, 2024
1 parent 9f692ca commit 2badff9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const spacePaddingLength = 130;
*/
export function parseDockets(docketFileText) {
const dockets = [];
const docketLines = docketFileText.replaceAll('\f', ' ').split(/[\n\f]/);
const docketLines = docketFileText.replaceAll('\f', ' \n').split(/[\n\f]/);
let docketLineIndex = 0;
for (docketLineIndex = 0; docketLineIndex < docketLines.length; docketLineIndex += 1) {
let docketLine = docketLines.at(docketLineIndex) ?? '';
Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const spacePaddingLength = 130
export function parseDockets(docketFileText: string): Docket[] {
const dockets: Docket[] = []

const docketLines = docketFileText.replaceAll('\f', ' ').split(/[\n\f]/)
const docketLines = docketFileText.replaceAll('\f', ' \n').split(/[\n\f]/)

let docketLineIndex = 0

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cityssm/docket-parser",
"version": "0.1.1",
"version": "0.1.2",
"type": "module",
"engines": {
"node": ">=18.0.0"
Expand Down

0 comments on commit 2badff9

Please sign in to comment.