donphan/spec/models
David Yip 4b68e82a19 Don't add \b to whole-word keywords that don't start with word characters.
Ditto for ending with \b.

Consider muting the phrase "(hot take)".  I stipulate it is reasonable
to enter this with the default "match whole word" behavior.  Under the
old behavior, this would be encoded as

    \b\(hot\ take\)\b

However, if \b is before the first character in the string and the first
character in the string is not a word character, then the match will
fail.  Ditto for after.  In our example, "(" is not a word character, so
this will not match statuses containing "(hot take)", and that's a very
surprising behavior.

To address this, we only add leading and trailing \b to keywords that
start or end with word characters.
2017-10-22 00:38:54 -05:00
..
concerns minor code style fixes oops 2017-09-13 21:47:30 -05:00
form Improve admin page (#4121) 2017-07-18 16:38:22 +02:00
glitch Don't add \b to whole-word keywords that don't start with word characters. 2017-10-22 00:38:54 -05:00
web Web Push Notifications (#3243) 2017-07-13 22:15:32 +02:00
account_domain_block_spec.rb Spec AccountDomainBlock (#3816) 2017-06-18 02:59:49 +02:00
account_filter_spec.rb Add coverage for ReportFilter and AccountFilter (#3236) 2017-05-22 15:50:58 -04:00
account_moderation_note_spec.rb Add moderation note (#5240) 2017-10-07 20:26:43 +02:00
account_spec.rb Merge branch 'origin/master' into sync/upstream 2017-09-09 14:27:47 -05:00
block_spec.rb Cover Block more (#3837) 2017-06-19 11:31:37 +02:00
conversation_mute_spec.rb Feature conversations muting (#3017) 2017-05-15 03:04:13 +02:00
conversation_spec.rb Add conversation model, <ostatus:conversation /> (#3016) 2017-05-12 19:09:21 +02:00
custom_emoji_spec.rb Custom emoji (#4988) 2017-09-19 02:42:40 +02:00
domain_block_spec.rb Cover DomainBlock more (#3838) 2017-06-19 11:31:27 +02:00
email_domain_block_spec.rb Implement EmailBlackList (#5109) 2017-10-04 15:16:10 +02:00
export_spec.rb Cover Export more (#3840) 2017-06-19 11:30:27 +02:00
favourite_spec.rb Cover Favourite more (#3841) 2017-06-19 01:38:50 +02:00
feed_spec.rb Improve spec of Feed and UserTrackingConcern (#5367) 2017-10-13 11:00:11 +02:00
follow_request_spec.rb add more tests to models 2017-04-05 00:29:56 +02:00
follow_spec.rb Introduce recent to Follow (#3247) 2017-05-23 13:12:19 +02:00
import_spec.rb Validate data of Imports (#4782) 2017-09-02 20:45:42 +02:00
media_attachment_spec.rb Increase attachment descriptions to 420 characters (#5139) 2017-09-29 02:30:00 +02:00
mention_spec.rb add more tests to models 2017-04-05 00:29:56 +02:00
mute_spec.rb Mute button progress so far. WIP, doesn't entirely work correctly. 2017-03-01 22:31:21 -06:00
notification_spec.rb Adding unified streamable notifications 2016-11-20 19:39:58 +01:00
preview_card_spec.rb Fix #463 - Fetch and display previews of URLs using OpenGraph tags 2017-01-20 01:00:14 +01:00
report_filter_spec.rb Add coverage for ReportFilter and AccountFilter (#3236) 2017-05-22 15:50:58 -04:00
report_spec.rb Feat add validation for report comment: characters under 1000 valid (#4833) 2017-09-07 09:55:42 +02:00
session_activation_spec.rb Revocable sessions (#3616) 2017-06-23 18:50:53 +02:00
site_upload_spec.rb Uploads for admin site settings (#4913) 2017-09-14 00:04:30 +02:00
status_pin_spec.rb Pinned statuses (#4675) 2017-08-25 01:41:18 +02:00
status_spec.rb Do not filter statuses with unknown languages (#5045) 2017-09-22 19:33:17 +02:00
stream_entry_spec.rb Stream entry specs and refactor to use delegate (#2827) 2017-05-06 04:00:21 +02:00
subscription_spec.rb Misc spec coverage improvements (#2821) 2017-05-05 14:56:00 -04:00
tag_spec.rb add validation to tag name (#4194) 2017-07-14 11:02:49 +02:00
user_spec.rb Application prefs section (#2758) 2017-08-22 18:33:57 +02:00