Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
rdheekonda committed Aug 6, 2024
1 parent 1dcfc7e commit 09d8398
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyrit/prompt_converter/character_space_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ async def convert_async(self, *, prompt: str, input_type: PromptDataType = "text
"""
if not self.input_supported(input_type):
raise ValueError("Input type not supported")
converted_text = re.sub('[!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~]', '', ' '.join(prompt))
converted_text = re.sub("[!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~]", "", " ".join(prompt))
return ConverterResult(output_text=converted_text, output_type="text")

def input_supported(self, input_type: PromptDataType) -> bool:
Expand Down

0 comments on commit 09d8398

Please sign in to comment.