Skip to content

Commit

Permalink
Use fixed fork of iarna/toml
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Oct 21, 2024
1 parent 8ac6f32 commit d5002b5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
5 changes: 5 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5386,6 +5386,9 @@ class Parser {
++this.col
return this.haveBuffer()
}
peekChar () {
return this._buf.codePointAt(this.ii + 1)
}
haveBuffer () {
return this.ii < this._buf.length
}
Expand Down Expand Up @@ -5850,6 +5853,8 @@ function makeParserClass (Parser) {
do {
if (this.char === Parser.END || this.char === CTRL_J) {
return this.return()
} else if (this.char === CTRL_M && this.peekChar() === CTRL_J) {
// CRLF line ending, LF is consumed on next iter
} else if (this.char === CHAR_DEL || (this.char <= CTRL_CHAR_BOUNDARY && this.char !== CTRL_I)) {
throw this.errorControlCharIn('comments')
}
Expand Down
10 changes: 4 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@actions/exec": "^1.1.1",
"@actions/glob": "^0.3.0",
"@actions/tool-cache": "^2.0.1",
"@iarna/toml": "^3.0.0",
"@iarna/toml": "github:AlexTMjugador/iarna-toml#fix/comment-crlf",
"string-argv": "^0.3.1",
"typescript": "^4.6.2"
},
Expand All @@ -37,4 +37,4 @@
"eslint-plugin-github": "^4.4.0",
"prettier": "^2.8.8"
}
}
}

0 comments on commit d5002b5

Please sign in to comment.