Skip to content

Commit

Permalink
Reverting breaking change in vitessio#6242: local example was failing
Browse files Browse the repository at this point in the history
Signed-off-by: Rohit Nayak <rohit@planetscale.com>
  • Loading branch information
rohit-nayak-ps committed Jun 2, 2020
1 parent 3dbf472 commit 1eed950
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go/vt/mysqlctl/tmutils/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func NewTableFilter(tables, excludeTables []string, includeViews bool) (*TableFi
if len(tables) > 0 {
f.filterTables = true
for _, table := range tables {
if strings.HasPrefix(table, "/") && strings.HasSuffix(table, "/") {
if strings.HasPrefix(table, "/") {
table = strings.Trim(table, "/")
re, err := regexp.Compile(table)
if err != nil {
Expand All @@ -108,7 +108,7 @@ func NewTableFilter(tables, excludeTables []string, includeViews bool) (*TableFi
if len(excludeTables) > 0 {
f.filterExcludeTables = true
for _, table := range excludeTables {
if strings.HasPrefix(table, "/") && strings.HasSuffix(table, "/") {
if strings.HasPrefix(table, "/") {
table = strings.Trim(table, "/")
re, err := regexp.Compile(table)
if err != nil {
Expand Down

0 comments on commit 1eed950

Please sign in to comment.