Skip to content

Commit

Permalink
Add square bracket test naming support
Browse files Browse the repository at this point in the history
  • Loading branch information
olivernybroe committed Apr 26, 2023
1 parent 85e906d commit 2704178
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
### Fixed
- Fixed file icon missing if all tests has property calls
- Fixed gutter icon not updating state correctly
- Fixed test names with `[` and `]` not being matched correctly

## 1.9.2 - 2023-03-01

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pluginGroup = com.pestphp
pluginName = PEST PHP
pluginVersion = 1.9.3-EAP.1
pluginVersion = 1.9.3-EAP.2

# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/com/pestphp/pest/PestNamingUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ fun String.toPestTestRegex(rootPath: String, file: String, pathMapper: PhpPathMa
.replace(" ", "\\s")
.replace("(", "\\(")
.replace(")", "\\)")
.replace("[", "\\[")
.replace("]", "\\]")
.replace("^", "\\^")
.replace("/", "\\/")
.replace("?", "\\?")
Expand Down

0 comments on commit 2704178

Please sign in to comment.