IdeaGinkgo / Intellij-Ginkgo

Idea plugin for running and viewing ginkgo tests
GNU General Public License v3.0
33 stars 12 forks source link

Focus expression is not escaped correctly #52

Closed mike-jm closed 2 years ago

mike-jm commented 2 years ago

The focus expression is a regex, but the characters with special meaning, for example parentheses ( ) are not correctly escaped Steps to reproduce:

  1. Run a single test named It("should even work if ) is in the name")
  2. A focus expression "should even work if ) is in the name" is generated.
  3. Ginkgo complains that the focus expression is not a regex
TaylorOno commented 2 years ago

version 0.6.2 correctly escapes parentheses, but there are probably still more regex characters that I need to escape