From 5e9fd6b3e628f3d10beffab82eb728e8d7b4303d Mon Sep 17 00:00:00 2001 From: Abhijeet Singh Date: Wed, 12 Jun 2019 18:24:56 +0530 Subject: [PATCH 1/2] Removed ambiguity in matched pattern. The pattern for Sales*200?.xls filter string wasn't correct. --- xml/System.IO/FileSystemWatcher.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml/System.IO/FileSystemWatcher.xml b/xml/System.IO/FileSystemWatcher.xml index d67fb8664d2..97427a03d22 100644 --- a/xml/System.IO/FileSystemWatcher.xml +++ b/xml/System.IO/FileSystemWatcher.xml @@ -958,7 +958,7 @@ |*.txt|All files with a "txt" extension.| |*recipe.doc|All files ending in "recipe" with a "doc" extension.| |win*.xml|All files beginning with "win" with an "xml" extension.| -|Sales*200?.xls|Matches the following:

Sales July 2001.xlsSales Aug 2002.xlsSales March 2004.xls

but does not match:

Sales Nov 1999.xls| +|Sales*200?.xls|Matches the following:

Sales July 2001.xls Sales Aug 2002.xls Sales March 2004.xls

but does not match:

Sales Nov 1999.xls| |MyReport.Doc|Watches only MyReport.doc| @@ -1925,4 +1925,4 @@ Public Delegate Sub RenamedEventHandler(sender As Object, e As RenamedEventArgs) - \ No newline at end of file + From e6539397dfba7a0f90c93dd3b2994efa8cfbb68d Mon Sep 17 00:00:00 2001 From: Abhijeet Singh Date: Fri, 14 Jun 2019 12:48:02 +0530 Subject: [PATCH 2/2] Update xml/System.IO/FileSystemWatcher.xml Additional changes were made for better readability. Co-Authored-By: Ron Petrusha --- xml/System.IO/FileSystemWatcher.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.IO/FileSystemWatcher.xml b/xml/System.IO/FileSystemWatcher.xml index 97427a03d22..b506bd638f8 100644 --- a/xml/System.IO/FileSystemWatcher.xml +++ b/xml/System.IO/FileSystemWatcher.xml @@ -958,7 +958,7 @@ |*.txt|All files with a "txt" extension.| |*recipe.doc|All files ending in "recipe" with a "doc" extension.| |win*.xml|All files beginning with "win" with an "xml" extension.| -|Sales*200?.xls|Matches the following:

Sales July 2001.xls Sales Aug 2002.xls Sales March 2004.xls

but does not match:

Sales Nov 1999.xls| +|Sales*200?.xls|Matches the following:

- Sales July 2001.xls
- Sales Aug 2002.xls
- Sales March 2004.xls

but does not match:

- Sales Nov 1999.xls| |MyReport.Doc|Watches only MyReport.doc|