File tree 2 files changed +7
-2
lines changed 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ private function isValidFilename(SplFileInfo $fileinfo) : bool
145
145
return false ;
146
146
}
147
147
148
- $ pattern = '/^\d{ ' . DecisionRecord::NUMBER_LENGTH . '}-[a-z\-]+ \\' . DecisionRecord::EXTENSION . '$/ ' ;
148
+ $ pattern = '/^\d{ ' . DecisionRecord::NUMBER_LENGTH . '}-[a-z\d\ -]+ \\' . DecisionRecord::EXTENSION . '$/ ' ;
149
149
150
150
return (boolean ) preg_match ($ pattern , $ fileinfo ->getFilename ());
151
151
}
Original file line number Diff line number Diff line change @@ -36,10 +36,15 @@ public function testCount()
36
36
37
37
$ vfs ->addChild (vfsStream::newFile ('0001-foo.md ' ));
38
38
$ vfs ->addChild (vfsStream::newFile ('0002-bar.md ' ));
39
+ $ vfs ->addChild (vfsStream::newFile ('0003-baz-2.md ' ));
40
+
41
+ $ vfs ->addChild (vfsStream::newFile ('0004-snake_case.md ' ));
42
+ $ vfs ->addChild (vfsStream::newFile ('0005-UPPERCASE.md ' ));
43
+ $ vfs ->addChild (vfsStream::newFile ('0006-CamelCase.md ' ));
39
44
$ vfs ->addChild (vfsStream::newFile ('any-file.md ' ));
40
45
$ vfs ->addChild (vfsStream::newDirectory ('any-directory ' ));
41
46
42
- $ this ->assertEquals (2 , $ workspace ->count ());
47
+ $ this ->assertEquals (3 , $ workspace ->count ());
43
48
}
44
49
45
50
public function testAdd ()
You can’t perform that action at this time.
0 commit comments