Skip to content

Commit e86f15b

Browse files
committed
fix replace_svg_dims
1 parent 67b0ba1 commit e86f15b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pointblank/validate.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12715,11 +12715,9 @@ def _get_assertion_icon(icon: list[str], length_val: int = 30) -> list[str]:
1271512715
return icon_svg
1271612716

1271712717

12718-
def _replace_svg_dimensions(svg: list[str], height_width: int | float) -> list[str]:
12718+
def _replace_svg_dimensions(svg: str, height_width: int | float) -> str:
1271912719
svg = re.sub(r'width="[0-9]*?px', f'width="{height_width}px', svg)
12720-
svg = re.sub(r'height="[0-9]*?px', f'height="{height_width}px', svg)
12721-
12722-
return svg
12720+
return re.sub(r'height="[0-9]*?px', f'height="{height_width}px', svg)
1272312721

1272412722

1272512723
def _get_title_text(

0 commit comments

Comments
 (0)