Skip to content

regex does not work as expected #439

@nova-nowiz

Description

@nova-nowiz
  • I am on the latest ActivityWatch version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • OS version and name: Arch Linux (5.6.15-arch1-1)
  • ActivityWatch version: 0.9.2-1 (activitywatch-bin on AUR)

Describe the bug

Regex special characters don't work in ActivityWatch Categorizations as mentioned in this forum post, escaping characters with backslashes cause problems.

To Reproduce

  1. Got to ActivityWatch web interface.
  2. Go to Settings
  3. Create a regex rule with a backslash escaped character (for example \w)
  4. See in the Activity tab that the rule is not taken into account as it is written

Expected behavior

The regex synax should respect a standard. This standard should also be available on the documentation or elsewhere.

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