diff --git a/test/parallel/test-url-pathtofileurl.js b/test/parallel/test-url-pathtofileurl.js index 6e5fd4eb7459cc..9c506e353f49e5 100644 --- a/test/parallel/test-url-pathtofileurl.js +++ b/test/parallel/test-url-pathtofileurl.js @@ -13,7 +13,7 @@ const url = require('url'); { const fileURL = url.pathToFileURL('test\\').href; assert.ok(fileURL.startsWith('file:///')); - assert.match(fileURL, isWindows ? /\\$/ : /%5C$/); + assert.match(fileURL, isWindows ? /\/$/ : /%5C$/); } {