QWDWQD
This commit is contained in:
6
main.py
6
main.py
@@ -197,11 +197,15 @@ def h5group(nickname, db: Session = Depends(get_db)):
|
|||||||
newtext = unquote(nickname, 'utf-8')
|
newtext = unquote(nickname, 'utf-8')
|
||||||
# pattern = r'收到(\w+)的在看'
|
# pattern = r'收到(\w+)的在看'
|
||||||
pattern = r'收到([\w\[\]@=]+)的在看'
|
pattern = r'收到([\w\[\]@=]+)的在看'
|
||||||
print(newtext)
|
print("newtext",newtext)
|
||||||
|
|
||||||
# 处理emoji转为[@emoji=1f916] 格式
|
# 处理emoji转为[@emoji=1f916] 格式
|
||||||
newtext=transOldemoji(newtext)
|
newtext=transOldemoji(newtext)
|
||||||
|
print("newtextemoji",newtext)
|
||||||
|
|
||||||
# 不是 ASCII 字符,则获取该字符的 Unicode 代码点
|
# 不是 ASCII 字符,则获取该字符的 Unicode 代码点
|
||||||
newtext = convert_special_chars_to_emoji(input_string)
|
newtext = convert_special_chars_to_emoji(input_string)
|
||||||
|
print("newtextASI",newtext)
|
||||||
matches = re.findall(pattern, newtext)
|
matches = re.findall(pattern, newtext)
|
||||||
print("matches", matches)
|
print("matches", matches)
|
||||||
matchesString = None
|
matchesString = None
|
||||||
|
|||||||
Reference in New Issue
Block a user