discourse/app/assets/javascripts/admin/addon
Loïc Guitaut 5c37a5d0f2
FIX: Allow to add the same watched word with a different case (#17799)
Currently we can’t add a case-sensitive watched word if another one
exists with a different case. For example, the existing watched word
`Meta` has been created and is case-sensitive. Now an admin tries to add
`metA` while marking it as case-sensitive too, this won’t work and the
word won’t be added.

This patch changes this behavior by allowing to add same words that have
different cases, so the example above will now work as expected.

We still check for uniqueness but case-sensitivy is now taken
into account. It means that if the watched word `meta` already exists
and is not case-sensitive then it will not be possible to add `Meta`
(case-sensitive or not) as `meta` already matches every possible
variations of this word.
2022-08-05 12:18:17 +02:00
..
adapters
components FIX: Allow to add the same watched word with a different case (#17799) 2022-08-05 12:18:17 +02:00
controllers DEV: Update /admin/badges to modern Ember patterns (#17672) 2022-08-03 10:12:17 +01:00
helpers DEV: Remove 'htmlSafe' string prototype extensions (#16766) 2022-05-13 14:58:26 -05:00
mixins DEV: Use includes() instead of indexOf() >= 0 (#17553) 2022-07-19 10:27:40 +08:00
models FEATURE: Add support for case-sensitive Watched Words (#17445) 2022-08-02 10:06:03 +02:00
routes DEV: Update /admin/badges to modern Ember patterns (#17672) 2022-08-03 10:12:17 +01:00
services DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
templates DEV: Update /admin/badges to modern Ember patterns (#17672) 2022-08-03 10:12:17 +01:00