Merge pull request #20065 from smowton/smowton/fix/web.config

C#: Make web.config match case insensitive (with change note)
This commit is contained in:
Chris Smowton
2025-07-16 09:52:34 +01:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -8,14 +8,14 @@ import csharp
* A `Web.config` file.
*/
class WebConfigXml extends XmlFile {
WebConfigXml() { this.getName().matches("%Web.config") }
WebConfigXml() { this.getName().toLowerCase().matches("%web.config") }
}
/**
* A `Web.config` transformation file.
*/
class WebConfigReleaseTransformXml extends XmlFile {
WebConfigReleaseTransformXml() { this.getName().matches("%Web.Release.config") }
WebConfigReleaseTransformXml() { this.getName().toLowerCase().matches("%web.release.config") }
}
/** A `<configuration>` tag in an ASP.NET configuration file. */

View File

@@ -0,0 +1,4 @@
---
category: fix
---
* `web.config` and `web.release.config` files are now recognised regardless of case. This means queries `cs/web/debug-binary` and `cs/web/missing-x-frame-options` may produce more results than before.