Skip to content

Bug of utils/string.py/words_from_text() #723

Description

@kaijiezhu11

Hi,

In this function words_from_text() in utils/string.py (used in AttackText for generating words list of a given sentence),

It seems that the function has difficulty handling quoted words.

For example, if an input is " AAA BBB 'CCC' ", the function words_from_text() returns AAA BBB and CCC', the left quote is deleted but the right quote is still reserved.

I would appreciate it if you could kindly take a look at this and see if there is a way to resolve the issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions