We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RegExpFlags::getFlags
1 parent b61bd56 commit a8929b6Copy full SHA for a8929b6
java/ql/lib/semmle/code/java/security/regexp/NfaUtilsSpecific.qll
@@ -58,6 +58,14 @@ module RegExpFlags {
58
root.getLiteral().isIgnoreCase()
59
}
60
61
+ /**
62
+ * Gets the flags for `root`, or the empty string if `root` has no flags.
63
+ */
64
+ deprecated string getFlags(RegExpTerm root) {
65
+ root.isRootTerm() and
66
+ result = root.getLiteral().getFlags()
67
+ }
68
+
69
/**
70
* Holds if `root` has the `s` flag for multi-line matching.
71
*/
0 commit comments