We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
res
AndroidLayoutXmlFile
1 parent 8542992 commit 2832318Copy full SHA for 2832318
1 file changed
java/ql/lib/semmle/code/java/frameworks/android/Layout.qll
@@ -6,7 +6,7 @@ private import semmle.code.java.dataflow.DataFlow
6
7
/** An Android Layout XML file. */
8
class AndroidLayoutXmlFile extends XmlFile {
9
- AndroidLayoutXmlFile() { this.getRelativePath().matches("%/res/layout/%.xml") }
+ AndroidLayoutXmlFile() { this.getRelativePath().regexpMatch("(.*/)?res/layout/.*\\.xml") }
10
}
11
12
/** A component declared in an Android layout file. */
0 commit comments