File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -1447,7 +1447,7 @@ PRISMA_data <- function(data) { #nolint
14471447 )
14481448 dbr_excluded <- data.frame (
14491449 reason = gsub(
1450- " ,\\ s* \\ d+ \\ s *$" ,
1450+ " ,. *$" ,
14511451 " " ,
14521452 unlist(
14531453 strsplit(
@@ -1464,8 +1464,8 @@ PRISMA_data <- function(data) { #nolint
14641464 )
14651465 ),
14661466 n = gsub(
1467- " ^ .*,\\ s*( \\ d+) \\ s*$ " ,
1468- " \\ 1 " ,
1467+ " .*," ,
1468+ " " ,
14691469 unlist(
14701470 strsplit(
14711471 as.character(
@@ -1493,7 +1493,7 @@ PRISMA_data <- function(data) { #nolint
14931493 )
14941494 other_excluded <- data.frame (
14951495 reason = gsub(
1496- " ,\\ s* \\ d+ \\ s *$" ,
1496+ " ,. *$" ,
14971497 " " ,
14981498 unlist(
14991499 strsplit(
@@ -1510,8 +1510,8 @@ PRISMA_data <- function(data) { #nolint
15101510 )
15111511 ),
15121512 n = gsub(
1513- " ^ .*,\\ s*( \\ d+) \\ s*$ " ,
1514- " \\ 1 " ,
1513+ " .*," ,
1514+ " " ,
15151515 unlist(
15161516 strsplit(
15171517 as.character(
Original file line number Diff line number Diff line change 55PRISMA_escape_text_ <- function (text ) { # nolint
66 if (is.null(text )) return (text )
77 text <- as.character(text )
8- # Escape backslashes first, then quotes and apostrophes
9- text <- gsub(" \\ " , " \\\\ " , text , fixed = TRUE )
8+ # Escape double quotes and apostrophes for DOT syntax
109 text <- gsub(' "' , ' \\ "' , text , fixed = TRUE )
11- text <- gsub(" '" , " \\ ' " , text , fixed = TRUE )
10+ text <- gsub(" '" , " ' " , text , fixed = TRUE )
1211 return (text )
1312}
1413
You can’t perform that action at this time.
0 commit comments