Skip to content

Commit

Permalink
Merge pull request #81 from ChemiKyle/fix_regex_replacement
Browse files Browse the repository at this point in the history
Fix regex replacement
  • Loading branch information
pbchase authored Sep 14, 2022
2 parents 0456efa + 76bfc6d commit c8d629f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/dataset_diff.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dataset_diff <- function(source,
dplyr::anti_join(target) %>%
dplyr::inner_join(target, by=source_pk) %>%
dplyr::select(dplyr::any_of(target_pk), dplyr::any_of(names(source)), dplyr::ends_with(".x")) %>%
dplyr::rename_with(., ~ gsub(".x", "", .x), dplyr::ends_with(".x"))
dplyr::rename_with(., ~ gsub("\\.x", "", .x), dplyr::ends_with(".x"))

ids_of_update_records <- update_records %>% dplyr::pull({{target_pk}})

Expand Down
2 changes: 1 addition & 1 deletion R/write_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ sync_table_2 <- function(
dplyr::anti_join(target) %>%
dplyr::inner_join(target, by=source_pk) %>%
dplyr::select(dplyr::any_of(target_pk), dplyr::any_of(names(source)), dplyr::ends_with(".x")) %>%
dplyr::rename_with(., ~ gsub(".x", "", .x), dplyr::ends_with(".x"))
dplyr::rename_with(., ~ gsub("\\.x", "", .x), dplyr::ends_with(".x"))

ids_of_update_records <- update_records %>% dplyr::pull({{target_pk}})

Expand Down

0 comments on commit c8d629f

Please sign in to comment.