Skip to content

Commit 1b7dc05

Browse files
committed
solved issue #38
1 parent 7b508da commit 1b7dc05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/citations.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ citations <- function(M, field = "article", sep = ";"){
5757
if (M$DB[1]=="ISI"){
5858
listCR=lapply(listCR, function(l){
5959
ListL=lapply(strsplit(unlist(l),","),function(x) x[1])
60-
l=unlist(ListL)
60+
l=trimws(trimES(gsub("[[:punct:]]"," ",unlist(ListL))))
6161
})}
6262
if (M$DB[1]=="SCOPUS"){
6363
listCR=lapply(listCR, function(l){
@@ -67,7 +67,7 @@ citations <- function(M, field = "article", sep = ";"){
6767
if (length(ind)==0) ind=1
6868
x=unlist(a[[1]][1:(ind[1]-1)])
6969
})
70-
l=unlist(ListL)
70+
l=trimws(trimES(gsub("[[:punct:]]"," ",unlist(ListL))))
7171
})}
7272
}
7373
CR=unlist(listCR)

0 commit comments

Comments
 (0)