Skip to content

Commit

Permalink
fix: trim_start
Browse files Browse the repository at this point in the history
  • Loading branch information
minenwerfer committed Aug 15, 2023
1 parent 1fb0b0a commit eafa33b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = 'normalize_json'
version = '0.0.8'
version = '0.0.9'
authors = [
{ name = 'João Gabriel Santos', email = '[email protected]' }
]
Expand Down
2 changes: 1 addition & 1 deletion src/normalize_json/normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def handle_modifiers(node: Node, modifiers: list[Modifier], old_value: typing.An
raise ValueError('value for %s wasnt provided' % node.get('map'))

if trim := node.get('trim_start'):
value = value[trim:]
value = value[trim*-1:]

if trim := node.get('trim_end'):
value = value[:trim]
Expand Down

0 comments on commit eafa33b

Please sign in to comment.