Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding strip function to remove leading and trailing whitespace from … #4

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
final fix
  • Loading branch information
reidgilman committed Feb 3, 2021
commit 22cf1b582dab1e1e4ea92e688ef0fb61446dfad4
12 changes: 6 additions & 6 deletions eql/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,8 @@ class LeftStrip(FunctionSignature):
"""Strip leading whitespace from a string."""

name = "lstrip"
argument_types = [STRING]
return_value = STRING
argument_types = [TypeHint.String]
return_value = TypeHint.String
minimum_args = 1

@classmethod
Expand Down Expand Up @@ -548,8 +548,8 @@ class RightStrip(FunctionSignature):
"""Strip trailing whitespace from a string."""

name = "rstrip"
argument_types = [STRING]
return_value = STRING
argument_types = [TypeHint.String]
return_value = TypeHint.String
minimum_args = 1

@classmethod
Expand Down Expand Up @@ -608,8 +608,8 @@ class Strip(FunctionSignature):
"""Strip leading & trailing whitespace from a string."""

name = "strip"
argument_types = [STRING]
return_value = STRING
argument_types = [TypeHint.String]
return_value = TypeHint.String
minimum_args = 1

@classmethod
Expand Down