Skip to content

Commit

Permalink
Merge pull request #90 from DaleMitchell/patch-1
Browse files Browse the repository at this point in the history
Fix issue #89 (error when parenthesis symbol in the MPN)
  • Loading branch information
uPesy authored Oct 13, 2023
2 parents 2778d44 + 21457e2 commit 3151a33
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions easyeda2kicad/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ def set_logger(log_file: str, log_level: int) -> None:


def sanitize_for_regex(field: str):
field = sanitize_fields(field)
chars_to_escape = r"(){}[],;.|\+-?*#^:$"
for char in chars_to_escape:
field = field.replace(char, rf"\{char}")
return field
return re.escape(field)


def id_already_in_symbol_lib(
Expand Down

0 comments on commit 3151a33

Please sign in to comment.