def METHOD_NAME(line, spec):
    flags = []
    for plugin in spec['flagged_js_plugins']:
        plugin_regex = _get_plugin_regex(plugin)
        extension_regex = _get_extension_regex(plugin)
        if re.search(plugin_regex, line) or re.search(extension_regex, line):
            flags.append(_get_change_guide(f"js-{plugin}"))
    return flags