File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1239,7 +1239,7 @@ var QueryBuilder = function() {
12391239
12401240 table = table . trim ( ) ;
12411241
1242- if ( table !== '' && ! table . match ( / ^ [ a - z A - Z 0 - 9 \$ _ ] + $ / ) ) {
1242+ if ( table !== '' && ! table . match ( / ^ [ a - z A - Z 0 - 9 \$ _ ] + ( \. [ a - z A - Z 0 - 9 \$ _ ] + ) ? $ / ) ) {
12431243 throw new Error ( "insert(): Invalid table name ('" + table + "') provided!" ) ;
12441244 }
12451245
@@ -1274,7 +1274,7 @@ var QueryBuilder = function() {
12741274
12751275 table = table . trim ( ) ;
12761276
1277- if ( table !== '' && ! table . match ( / ^ [ a - z A - Z 0 - 9 \$ _ ] + $ / ) ) {
1277+ if ( table !== '' && ! table . match ( / ^ [ a - z A - Z 0 - 9 \$ _ ] + ( \. [ a - z A - Z 0 - 9 \$ _ ] + ) ? $ / ) ) {
12781278 throw new Error ( "insert(): Invalid table name ('" + table + "') provided!" ) ;
12791279 }
12801280
@@ -1439,7 +1439,7 @@ var QueryBuilder = function() {
14391439 table = table . trim ( ) ;
14401440
14411441 // Table name must be in a legitimate format
1442- if ( table !== '' && ! table . match ( / ^ [ a - z A - Z 0 - 9 \$ _ ] + $ / ) ) {
1442+ if ( table !== '' && ! table . match ( / ^ [ a - z A - Z 0 - 9 \$ _ ] + ( \. [ a - z A - Z 0 - 9 \$ _ ] + ) ? $ / ) ) {
14431443 throw new Error ( "update(): You have not set any tables to update!" ) ;
14441444 }
14451445
@@ -1514,7 +1514,7 @@ var QueryBuilder = function() {
15141514 table = table . trim ( ) ;
15151515
15161516 // Table name must be in a legitimate format
1517- if ( table !== '' && ! table . match ( / ^ [ a - z A - Z 0 - 9 \$ _ ] + $ / ) ) {
1517+ if ( table !== '' && ! table . match ( / ^ [ a - z A - Z 0 - 9 \$ _ ] + ( \. [ a - z A - Z 0 - 9 \$ _ ] + ) ? $ / ) ) {
15181518 throw new Error ( "update(): You have not set any tables to update!" ) ;
15191519 }
15201520
You can’t perform that action at this time.
0 commit comments