Skip to content

Commit 1cc2942

Browse files
committed
fix(main): fix multiline format check bug
1 parent 93bb6fa commit 1cc2942

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

git-consistent

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const inputText = (term, _definition) => {
8686
values.push(value)
8787
} while (!_.isEmpty(value))
8888

89-
return values.join("\n")
89+
return values.join("\n").trim()
9090
}
9191

9292
const input = (term, definition) => {
@@ -160,7 +160,7 @@ const replaceTerm = (program, template, definition, term) => {
160160
let value = definition.type === 'variable' ? program[definition.origin] : program[term]
161161

162162
if (program.interactive) {
163-
if (_.isUndefined(value)) {
163+
if (_.isUndefined(value) || _.isNull(value)) {
164164
if (definition.required || !program.skipOptions) {
165165
value = input(term, definition)
166166
} else {

0 commit comments

Comments
 (0)