feat(reactor): 状态机进一步改进
This commit is contained in:
4
src/heurams/services/textproc.py
Normal file
4
src/heurams/services/textproc.py
Normal file
@@ -0,0 +1,4 @@
|
||||
def truncate(text):
|
||||
if len(text) <= 3:
|
||||
return text
|
||||
return text[:3] + ">"
|
||||
Reference in New Issue
Block a user