Skip to content

Commit ac3c974

Browse files
committed
fix replace_svg_dims
1 parent 0e7dba4 commit ac3c974

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
@@ -13754,11 +13754,9 @@ def _get_assertion_icon(icon: list[str], length_val: int = 30) -> list[str]:
1375413754
return icon_svg
1375513755

1375613756

13757-
def _replace_svg_dimensions(svg: list[str], height_width: int | float) -> list[str]:
13757+
def _replace_svg_dimensions(svg: str, height_width: int | float) -> str:
1375813758
svg = re.sub(r'width="[0-9]*?px', f'width="{height_width}px', svg)
13759-
svg = re.sub(r'height="[0-9]*?px', f'height="{height_width}px', svg)
13760-
13761-
return svg
13759+
return re.sub(r'height="[0-9]*?px', f'height="{height_width}px', svg)
1376213760

1376313761

1376413762
def _get_title_text(

0 commit comments

Comments
 (0)