Skip to content

Commit

Permalink
Update ai_modules.py
Browse files Browse the repository at this point in the history
  • Loading branch information
HyunJunCho00 authored Dec 5, 2024
1 parent 819c549 commit 2cde8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_server_code/ai_modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ def get_ai_message(question):
"https://cse.knu.ac.kr/bbs/board.php?bo_table=sub2_1"]
prof_name=""
# 정규식을 이용하여 숫자 이전의 문자열을 추출
if any(f_url.startswith(url) for url in prof_url):
if any(final_url.startswith(url) for url in prof_url):
match = re.match(r"^[^\dA-Za-z]+", prof_title)
if match:
prof_name = match.group().strip() # 숫자 이전의 문자열을 교수 이름으로 저장
Expand Down

0 comments on commit 2cde8b7

Please sign in to comment.