Skip to content

Commit 1a6cf54

Browse files
committed
fix logic in table name validation
1 parent e8780b4 commit 1a6cf54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sqlite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl SqliteStore {
2121
}
2222

2323
pub fn with_table_name(mut self, table_name: String) -> Self {
24-
if table_name.chars().any(|c| c.is_ascii_alphanumeric()) {
24+
if table_name.chars().any(|c| !c.is_ascii_alphanumeric()) {
2525
panic!(
2626
"table name must be alphanumeric, but {} was not",
2727
table_name

0 commit comments

Comments
 (0)