Skip to content

Commit

Permalink
style(engine): 상수명 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yoouyeon committed Oct 15, 2024
1 parent 1a9842f commit 23cb127
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/analysis-engine/src/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default function getCommitRaws(log: string) {
if (!log) return [];
const EOL_REGEX = /\r?\n/;
const COMMIT_SEPARATOR = new RegExp(`${EOL_REGEX.source}{4}`);
const COMMIT_MESSAGE_BODY_INDENTATION = " ";
const INDENTATION = " ";

// step 0: Split log into commits
const commits = log.substring(2).split(COMMIT_SEPARATOR);
Expand Down Expand Up @@ -53,7 +53,7 @@ export default function getCommitRaws(log: string) {
if (idx === 0)
// message subject
messageSubject = line;
else if (line.startsWith(COMMIT_MESSAGE_BODY_INDENTATION)) {
else if (line.startsWith(INDENTATION)) {
// message body (add newline if not first line)
messageBody += idx === 1 ? line.trim() : `\n${line.trim()}`;
} else if (line === "")
Expand Down

0 comments on commit 23cb127

Please sign in to comment.