Skip to content

Bug: "Missing GitHub regex" warning due to incorrect dot escaping in regex patterns #114

@Tellsanguis

Description

@Tellsanguis

Description: PatchPanda currently triggers a Missing GitHub regex warning even when a regex is correctly configured. This appears to be caused by the validation logic failing when the dot character . is used literally instead of being escaped as ..

Observed Examples:

Service: changedetection

    Detected Version: 0.52.9

    Configured Regex: ^\d+.\d+.\d+$

Service: ClipCascade

    Detected Version: 22.04

    Configured Regex: ^\d+.\d+$

The Problem: In standard regex, the . character matches any character. To strictly match a semantic version (where the dot is a literal separator), it should be escaped (.). However, PatchPanda seems to misinterpret these patterns or mark them as "missing" because they don't follow a specific internal strict format, leading to false-positive warnings.

Suggested Fix: The engine should correctly validate patterns where . is used for versioning or explicitly suggest/require the escaped . format without dropping the regex status to "Missing".

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions