Skip to content

Commit

Permalink
feat: cli를 변경하다
Browse files Browse the repository at this point in the history
- 날짜 설정을 수정함.
  • Loading branch information
ujuc committed Oct 19, 2024
1 parent 697001c commit b8d5b60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def handle(self) -> int:
title = self.argument("title")
today = pendulum.now()

slug = re.sub("[^\w\s가-힣]", "", title).lower().replace(" ", "-")
slug = re.sub(r"[^\w\s가-힣]", "", title, flags=re.UNICODE).lower().replace(" ", "-")
date = f"{today.month}-{today.day}"
post_date = today.to_datetime_string()
post_date = today.format("YYYY-MM-DD HH:mm")

file_name = f"{date}-{slug}.md"

Expand Down

0 comments on commit b8d5b60

Please sign in to comment.