Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

str_extract_groups() fails for U_REGEX_RULE_SYNTAX #10

Open
yutannihilation opened this issue Feb 2, 2019 · 1 comment
Open

str_extract_groups() fails for U_REGEX_RULE_SYNTAX #10

yutannihilation opened this issue Feb 2, 2019 · 1 comment

Comments

@yutannihilation
Copy link
Owner

Probably, this is the problem about the version of libicu...?

> test_check("tiedr")
── 1. Error: str_extract_groups() works (@test-named_capture_group.R#17)  ──────
Syntax error in regexp pattern. (U_REGEX_RULE_SYNTAX)
1: expect_equal(str_extract_groups(c("a_val", "b_val"), "{name}_{value}"), tibble::tibble(name = c("a", 
       "b"), value = c("val", "val"))) at testthat/test-named_capture_group.R:17
2: quasi_label(enquo(object), label)
3: eval_bare(get_expr(quo), get_env(quo))
4: str_extract_groups(c("a_val", "b_val"), "{name}_{value}")
5: purrr::map_dfc(replacements, ~stringi::stri_replace_first_regex(x, pattern, .))
6: map(.x, .f, ...)
7: .f(.x[[i]], ...)
8: stringi::stri_replace_first_regex(x, pattern, .)
@yutannihilation
Copy link
Owner Author

Probably, this is the problem about the version of libicu...?

Seems my guess is right. Trusty uses ICU 52.1

https://launchpad.net/ubuntu/trusty/+source/icu

Xenial uses ICU 55.1

https://launchpad.net/ubuntu/xenial/+source/icu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant