Skip to content

Commit

Permalink
Fix subaqueous drainage class parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
brownag committed Feb 23, 2024
1 parent 6953376 commit f676019
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/parseOSD_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@

# combine into capturing REGEX
classes.regex <- paste0('(', paste(classes, collapse = '|'), ')', "( drained)?( (to|or|and) )?",
paste0('(', paste(classes, collapse = '|'), ')'), "? drained")
paste0('(', paste(classes, collapse = '|'), ')'), "? drained|subaqueous")

# get matches
m <- stringi::stri_match(text, regex = classes.regex, mode = 'first', opts_regex = list(case_insensitive = TRUE))
Expand Down

0 comments on commit f676019

Please sign in to comment.