Adium

Opened 10 years ago

Closed 10 years ago

#12832 closed defect (fixed)

Mentions - Regex Support

Reported by: jmazzi Owned by:
Milestone: Adium 1.5 Component: Adium Core
Version: 1.4b8 Severity: normal
Keywords: regex mentions Cc:
Patch Status:

Description

I'd love to see an option for specifying that a pattern is a regular expression. This would allow you to plan for typos in mentions.

Mat(h|c)(h|c)

Change History (1)

comment:1 Changed 10 years ago by wixardy

  • Milestone set to Adium 1.5
  • Resolution set to fixed
  • Status changed from new to closed

(In d6bb9d4249fc) Use NSPredicate for mention detection. Fixes #12831.

Refactor our mention filter to search for strings based on NSPredicate matches. Aside from simplifying the main matching loop, this also lets users seach using ICU regexps like so: /[mM]atchng\s[sS]tring/.

All matches are case and diacritic insensitive.

See http://userguide.icu-project.org/strings/regexp for details on expression syntax.

Note: See TracTickets for help on using tickets.