Skip to content

Commit

Permalink
Fix a typo in the exception text.
Browse files Browse the repository at this point in the history
  • Loading branch information
ttsugriy authored and vstinner committed May 4, 2023
1 parent 2c0bebf commit 0a030e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hachoir/regex/pattern.py
Expand Up @@ -125,7 +125,7 @@ def addRegex(self, regex, user=None):
item = RegexPattern(regex, user)
if item.regex.maxLength() is None:
raise ValueError(
"Regular expression with no maximum size has forbidden")
"Regular expression with no maximum size is forbidden")
self.regex_patterns.append(item)
self._need_commit = True

Expand Down

0 comments on commit 0a030e3

Please sign in to comment.