Skip to content

Escaping characters #18

Description

@Bretterteig

Escaping characters for use in regex does work properly.

Regex in TMOL: (Matches every app bundle inside a user dir execept admin's)

blacklist_regex = "^(?:/Users)/(?!admin/).+\.app.*"

Alternatives it tried (based on tmol reference)

blacklist_regex = "^(?:/Users)/(?!admin/).+\\.app.*"
blacklist_regex = "^(?:/Users)/(?!admin/).+\u005C.app.*"
blacklist_regex = '^(?:/Users)/(?!admin/).+\.app.*'

After sync to client (read via "defaults read /var/db/santa/sync-state.plist BlacklistRegex"):

"^(?:/Users)/(?!admin/).+\\\\.app.*"

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions