Skip to content

Commit

Permalink
sosedoff#301: change rexexp to String.split()
Browse files Browse the repository at this point in the history
  • Loading branch information
ldinc committed Oct 14, 2017
1 parent 0e2926c commit ab443f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions static/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ function resetTable() {
removeClass("no-crop");
}

var tableNameRegExp = /(?:\.([^.]+))?$/;

function performTableAction(table, action, el) {
if (action == "truncate" || action == "delete") {
var message = "Are you sure you want to " + action + " table " + table + " ?";
Expand Down Expand Up @@ -227,7 +225,7 @@ function performTableAction(table, action, el) {
win.focus();
break;
case "copy":
copyToClipboard(tableNameRegExp.exec(table)[1]);
copyToClipboard(table.split('.')[1]);
break;
}
}
Expand Down

0 comments on commit ab443f5

Please sign in to comment.