zulip/zerver/lib/bugdown
Steve Howell 40b18094ec alert words: Refactor alert word detection.
The bugdown parser no longer has a concept of which users need which
alert words, since it can't really do anything actionable with that info
from a rendering standpoint.

Instead, our calling code passes in a set of search words to the parser.
The parser returns the list of words it finds in the message.
Then the model method builds up the list of user ids that should be
flagged as having alert words in the message.

This refactoring is a little more involved than I'd like, but there are
still some circular dependency issues with rendering code, so I need to
pass in the rather complicated realm_alert_words data structure all the way
from the action through the model to the renderer.

This change shouldn't change the overall behavior of the system, except
that it does remove some duplicate regex checks that were occurring when
multiple users may have had the same alert word.
2016-09-23 15:21:17 -07:00
..
__init__.py alert words: Refactor alert word detection. 2016-09-23 15:21:17 -07:00
codehilite.py bugdown's codehilite.py: Fix annotations in python 3 mode. 2016-07-07 09:52:24 -07:00
fenced_code.py zerver/lib/bugdown/fenced_code.py: Add BaseHandler. 2016-06-16 15:21:17 -07:00
testing_mocks.py Fix twitter mock data. 2016-07-17 10:23:25 -07:00
tlds-alpha-by-domain.txt [manual] Rename Django app from zephyr to zerver. 2013-08-06 07:39:36 -04:00