fix wrong acronym check, add hashtag check
This commit is contained in:
@@ -71,10 +71,10 @@ viewMatchingTweets <- function(date, issue, folder) {
|
||||
}
|
||||
|
||||
|
||||
checkAcronym <- function(string, chars) {
|
||||
curtag_up <- str_replace_all(string = curtag, pattern = "[[:lower:]]", replacement = "")
|
||||
curchars_up <- nchar(curtag_up, type = "chars")
|
||||
if(curchars_up == curchars) {
|
||||
checkAcronym <- function(string) {
|
||||
curtag_up <- str_replace_all(string = string, pattern = "[[:lower:]]", replacement = "")
|
||||
#curchars_up <- nchar(curtag_up, type = "chars")
|
||||
if(curtag_up == string) {
|
||||
return(TRUE)
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user