diff --git a/src/frame_service/wavu/tests/test_utils.py b/src/frame_service/wavu/tests/test_utils.py index dbc0382..7685271 100644 --- a/src/frame_service/wavu/tests/test_utils.py +++ b/src/frame_service/wavu/tests/test_utils.py @@ -101,3 +101,7 @@ def test_process_links() -> None: utils._process_links("[[Azucena combos#Mini-combos|+27a]]") == "[+27a](https://wavu.wiki/t/Azucena_combos#Mini-combos 'Mini-combo')" ) + assert ( + utils._process_links("[[Devil Jin combos#Mini-combos|+10]]") + == "[+10](https://wavu.wiki/t/Devil_Jin_combos#Mini-combos 'Mini-combo')" + ) diff --git a/src/frame_service/wavu/utils.py b/src/frame_service/wavu/utils.py index fd3946e..eadb09e 100644 --- a/src/frame_service/wavu/utils.py +++ b/src/frame_service/wavu/utils.py @@ -104,7 +104,7 @@ def _convert_json_move(move_json: Any) -> WavuMove: damage = _normalize_data(move_json["damage"]) - on_block = _remove_html_tags(_normalize_data(move_json["block"])) + on_block = _remove_html_tags(_normalize_data(_process_links(move_json["block"]))) on_hit = _remove_html_tags(_normalize_data(_process_links(move_json["hit"])))