Skip to content

Commit

Permalink
Merge pull request #708 from ckeditor/ck/9849
Browse files Browse the repository at this point in the history
Fix (tests): Fixed a faulty regexp that did not care about Windows environments for manual tests. Closes ckeditor/ckeditor5#9849.
  • Loading branch information
pomek authored Jun 15, 2021
2 parents 66299f6 + 96928d3 commit 48046b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function generateIndex( sourcePath ) {

for ( const file of testFiles ) {
const relativeFilePath = file.replace( sourcePath + path.sep, '' );
const packageName = relativeFilePath.match( /([^/]+)\/tests\/([^/]+\/)*manual/ )[ 1 ];
const packageName = relativeFilePath.match( /([^/\\]+)[/\\]tests[/\\]([^/\\]+[/\\])*manual/ )[ 1 ];
const shortTestName = relativeFilePath.replace( /.*\/manual\//g, '' );

if ( !testTree[ packageName ] ) {
Expand Down

0 comments on commit 48046b2

Please sign in to comment.