Skip to content

Commit

Permalink
introduce is_safe, fixing #5
Browse files Browse the repository at this point in the history
  • Loading branch information
athalhammer committed May 22, 2024
1 parent ee19657 commit 7df5a2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions erdi8/erdi8.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def __init__(self, safe: bool = False):
self.alph = "".join([a for a in self.alph if a not in self.UNSAFE])
self.alph_map = {a: self.alph.find(a) for a in self.alph}
self.alph_len = len(self.alph)
self.is_safe = safe

def check(self, string: str) -> bool:
"""
Expand Down

0 comments on commit 7df5a2f

Please sign in to comment.