Skip to content

Commit dfc5192

Browse files
Change regex
1 parent ef2b225 commit dfc5192

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/frameworks/Streamlit.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module Streamlit {
3838
private class StreamlitSqlConnection extends API::CallNode {
3939
StreamlitSqlConnection() {
4040
exists(StringLiteral str, API::CallNode n |
41-
str.getText().matches("sql")
41+
str.getText() = "sql"
4242
and
4343
n = API::moduleImport("streamlit").getMember("connection").getACall()
4444
and

0 commit comments

Comments
 (0)