Skip to content

Regex with ^ doesn't work for title key #1148

@istudyatuni

Description

@istudyatuni
  • I am on the latest ActivityWatch version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • OS name and version: NixOS unstable (nixpkgs 2025-05-25)
  • ActivityWatch version: v0.13.2 (rust)

Describe the bug

When I create "Category" rule of type "Regular expression" which starts with ^, it doesn't match anything

To Reproduce

  1. Go to settings
  2. Add new rule
  3. Write title of any not yet matched app and prepend it with ^ (so, if app name is "App Name", regex should be ^App Name), and set some color
  4. Go to Timeline and see that app is not highlighted

Expected behavior

App is categorized

Documentation

There are no related logs in browser's console

Additional context

$ works

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions