Skip to content

Commit

Permalink
refactor: refactor StringMobject
Browse files Browse the repository at this point in the history
  • Loading branch information
YishiMichael committed Aug 20, 2022
1 parent 7ffc7b3 commit 19c757e
Show file tree
Hide file tree
Showing 5 changed files with 192 additions and 140 deletions.
6 changes: 3 additions & 3 deletions manimlib/mobject/svg/mtex_mobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ def replace_for_content(match_obj: re.Match) -> str:

@staticmethod
def replace_for_matching(match_obj: re.Match) -> str:
if match_obj.group("command"):
return match_obj.group()
return ""
if match_obj.group("script"):
return ""
return match_obj.group()

@staticmethod
def get_attr_dict_from_command_pair(
Expand Down
Loading

0 comments on commit 19c757e

Please sign in to comment.