Skip to content

Commit 37494db

Browse files
committed
Added an assertion for nested patterns in a set
1 parent 11d9a64 commit 37494db

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/PatternTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ public function it_can_convert_a_complex_glob_pattern_to_a_regular_expressions()
7272
$this->assertEquals('#^foo}bar\.txt$#', Pattern::make('foo}bar.txt')->toRegex());
7373
$this->assertEquals('#^foo,bar\.txt$#', Pattern::make('foo,bar.txt')->toRegex());
7474
$this->assertEquals('#^foo/.*/[^/]*\.txt$#', Pattern::make('foo/**/*.txt')->toRegex());
75+
$this->assertEquals('#^(foo|ba[rz])\.txt$#', Pattern::make('{foo,ba[rz]}.txt')->toRegex());
7576
}
7677

7778
#[Test]

0 commit comments

Comments
 (0)