We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf1f645 commit 6bedb42Copy full SHA for 6bedb42
R/locate.R
@@ -3,15 +3,15 @@ str_locate_single <- function(l, x) {
3
return(NULL)
4
}
5
6
- if (class(x) == "fixed" || class(x) == "regex" || class(x) == "coll" && x@ignore_case) {
+ if (class(x) == "fixed" || class(x) == "regex" && x@ignore_case) {
7
l <- convert_to_uppercase(l)
8
9
10
switch(
11
class(x),
12
fixed = str_bytes_locate(l, get_fixed(x)),
13
regex = str_regex_locate(l, get_regex(x)),
14
- coll = str_utf8_locate(l, get_coll(x)),
+ coll = str_utf8_locate(l, get_coll(x), x@ignore_case),
15
character = str_regex_locate(l, x)
16
)
17
0 commit comments