Menu

Exclude portion from section to be searched

2023-01-25
2023-01-26
  • Dimitrios Valsamis

    Hello,

    I'm using WCM for some time to be notified about new releases of projects that are hosted in GitHub. So, I have created entries to the tag page of respective projects. For example:

    https://github.com/dbeaver/dbeaver/tags

    Also, for each entry I use "Start" and "End" tags to identify the section for be searched for differences:

    Start tag: <div class="d-flex">
    Stop Tag: <div data-pjax class="paginate-container">
    

    Up until a couple of days ago this strategy worked just fine, until a new button/functionality was introduced on the GitHub tag pages (see the attached image for an example).

    Behind this new button/functionality there is some sort of commit content that changes each time the page is checked even though there's no new version. Example:

    "Old" content:

    </button> <tool-tip id="**tooltip-f86ced66-b568-4572-af14-2a64293179e0**" for="toggle-commit-22.3.3" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Toggle commit message</tool-tip>
    

    "New" content:

    </button> <tool-tip id="**tooltip-281a0729-59fa-43b9-8b7f-90cdc9b54d59**" for="toggle-commit-22.3.3" data-direction="s" data-type="label" data-view-component="true" class="sr-only position-absolute">Toggle commit message</tool-tip>
    

    I'm also attaching "old" and "new" WCM files.

    Is there any way to "tell" WCM to exclude tooltip-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx when checking for changes?

    I tried to do something with the RegEx filter, but couldn't make it

    Thank you
    Dimitrios

     
  • Morten MacFly

    Morten MacFly - 2023-01-25

    Yes, you can do that. You'll need the feature "Ignore patterns" that you can either customise for single pages or even use it globally (like fr all Github pages you are monitoring this way). The setup is as follows:

    • Go to the menu "Tools" > "Configuration"
    • Select the "Ignores/Replace" section
    • Setup an ignore pattern like:
    • "Ignore from" = <tool-tip id="
    • "Ignore to" = "

    The go to the settings of the item you are monitoring an enable "Apply ignores".
    I've attached two screenshots to this message shown these settings.

     

    Last edit: Morten MacFly 2023-01-26
    • Dimitrios Valsamis

      @mortenmacfly thank you som much! I was so much out-of-focus I didn't even notice the "Ignores/Replace" section :(

       
      • Morten MacFly

        Morten MacFly - 2023-01-26

        You're welcome. I'll leave this topic here and link to it elsewhere as it also serves nicely as a "HowTo".

         
        ❤️
        1

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.