Skip to content

Change const service_regex to cope with linebreaks #14

@manuelbb-upb

Description

@manuelbb-upb

This is a follow-up to my previous (erroneous) issue.

My service was not detected.
The file I was provided has it defined like this:

service ServiceNAME
{
  …
}

The file is scanned line by line and const service_regex requires { at the end of the line (which is why my service was not detected).

It works if I use

const service_regex = r"service\s(\S*)[\s]*\{*.*"

PS: in detect_services, there is an superfluous strip(line) when we are checking if it starts with "service".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions