Большое обновление всего проекта
This commit is contained in:
@@ -19,6 +19,22 @@ class ToLowerCase(PipeBase):
|
||||
def do(self, data):
|
||||
return data.lower()
|
||||
|
||||
class Strip(PipeBase):
|
||||
"""
|
||||
Удаляет пробелы в начале и конце строки
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
"""
|
||||
Конструктор
|
||||
"""
|
||||
|
||||
super().__init__("strip", DataType.String, DataType.String)
|
||||
self.description = "removes any leading and trailing whitespaces"
|
||||
|
||||
def do(self, data: str):
|
||||
return data.strip()
|
||||
|
||||
class Split(PipeBase):
|
||||
"""
|
||||
Разбивает строку на токены через разделитель
|
||||
|
||||
Reference in New Issue
Block a user