Skip to content

edit command doesn't allow for / character #2

Description

@imaginarys96

Description
The command used to edit a question, edit doesn't work as expected when the question or answer contains a / character. There are real use cases for which these two fields may contain the / character.

Steps to reproduce

  1. Run the app
  2. Add a question using the short command, i.e. short represent the fraction 5/3 as a mixed number/ans w/math/easy
  3. Try editing the same question by running edit 1 /description what is 5/3?

Expected Output

    ____________________________________________________________

    Roger that! I have edited the following question >w< !
        [S][] what is 5/3? / answ | math | EASY
    ____________________________________________________________

Actual Output

    ____________________________________________________________

    Ono! You tried to edit using more than 1 question component :<
    Please format your input as edit [question number] /description [description] or /answer [answer]!
    ____________________________________________________________

Screenshot

image.png

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions