Skip to content

Commit a8929b6

Browse files
committed
deprecate RegExpFlags::getFlags instead of deleting it
1 parent b61bd56 commit a8929b6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

java/ql/lib/semmle/code/java/security/regexp/NfaUtilsSpecific.qll

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ module RegExpFlags {
5858
root.getLiteral().isIgnoreCase()
5959
}
6060

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+
6169
/**
6270
* Holds if `root` has the `s` flag for multi-line matching.
6371
*/

0 commit comments

Comments
 (0)