8000 Chore: Edit message · N-analyst/commitizen_auto@cd9c02f · GitHub
[go: up one dir, main page]

Skip to content

Commit cd9c02f

Browse files
author
raw.data
committed
Chore: Edit message
1 parent 74bfd67 commit cd9c02f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

commitizen/cz/conventional_commits/conventional_commits.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
def parse_message(text):
1313
if isinstance(text, str) and text != '':
14-
text = (text[0].upper() + text[1:]).replace('.', '')
14+
text = text.strip('.')
15+
text = (text[0].upper() + text[1:])
1516

1617
return required_validator(text, msg="Message is required.")
1718

@@ -114,7 +115,7 @@ def questions(self) -> Questions:
114115
"type": "input",
115116
"name": "message",
116117
"message": (
117-
"메시지를 입력하세요. (첫글자는 대문자로 변환됩니다. / '.'도 제거 됩니다.)\n"
118+
"메시지를 입력하세요. (첫글자는 대문자로 변환됩니다. / 문장끝 '.'도 제거 됩니다.)\n"
118119
),
119120
"filter": parse_message,
120121
},

0 commit comments

Comments
 (0)
0