Skip to contents

For each variable with a keywords: block, produces a single regex that matches any of those keywords as a substring not immediately surrounded by other alphanumeric characters (so kjonn matches io_kjonn but not kjonnstudie).

Usage

build_keyword_patterns(config, min_char = 3)

Arguments

config

List with a $var_map element (from load_config()).

min_char

Minimum keyword length to include. Default 3.

Value

Named list of regex strings; variables without usable keywords are omitted.