trinker / qdapRegex

qdapRegex is a collection of regular expression tools associated with the qdap package that may be useful outside of the context of discourse analysis.
50 stars 4 forks source link

Bug in rm_repeated_characters() / ex_repeated_characters() #35

Open sanjmeh opened 2 years ago

sanjmeh commented 2 years ago
library(qdapRegex)

"hha that was a good joke peep and pepper and pepe" |> rm_repeated_characters()
# "that was a good joke peep and pepper and"

"ahh that was a good joke peep and pepper and pepe"  |>  rm_repeated_characters()
#  "ahh that was a good joke peep and pepper and"

Note hha is removed while ahh is not removed. Is this by design or a bug? There is nothing in the documentation that says only starting characters will be checked.