mirror of
https://github.com/github/codeql.git
synced 2026-04-20 14:34:04 +02:00
Java: Account for top-level res folders in AndroidLayoutXmlFile
This commit is contained in:
@@ -6,7 +6,7 @@ private import semmle.code.java.dataflow.DataFlow
|
||||
|
||||
/** An Android Layout XML file. */
|
||||
class AndroidLayoutXmlFile extends XmlFile {
|
||||
AndroidLayoutXmlFile() { this.getRelativePath().matches("%/res/layout/%.xml") }
|
||||
AndroidLayoutXmlFile() { this.getRelativePath().regexpMatch("(.*/)?res/layout/.*\\.xml") }
|
||||
}
|
||||
|
||||
/** A component declared in an Android layout file. */
|
||||
|
||||
Reference in New Issue
Block a user