From 1b22258576fa82782aa9ce8ee6704638f5f97590 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Sat, 17 Feb 2024 12:50:35 -0800 Subject: [PATCH] Update special_color logic for Banana Chia Wings case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tbh I'm not sure `special_color` is actually used anywhere? It used to be how we decide what to show in the previewer on the item page, but that's been replaced with the 2020 logic, so idk… But in any case, I noticed that the description doesn't match the pattern we have, so here's the fix! --- app/models/item.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/item.rb b/app/models/item.rb index bfaa28cf..91e300d3 100644 --- a/app/models/item.rb +++ b/app/models/item.rb @@ -18,7 +18,7 @@ class Item < ApplicationRecord NCRarities = [0, 500] PAINTBRUSH_SET_DESCRIPTION = 'This item is part of a deluxe paint brush set!' SPECIAL_COLOR_DESCRIPTION_REGEX = - /This item is only wearable by Neopets painted ([a-zA-Z]+)\.|WARNING: This [a-zA-Z]+ can be worn by ([a-zA-Z]+) [a-zA-Z]+ ONLY!|If your Neopet is not painted ([a-zA-Z]+), it will not be able to wear this item\./ + /This item is only wearable by [a-zA-Z]+ painted ([a-zA-Z]+)\.|WARNING: This [a-zA-Z]+ can be worn by ([a-zA-Z]+) [a-zA-Z]+ ONLY!|If your Neopet is not painted ([a-zA-Z]+), it will not be able to wear this item\./ cattr_reader :per_page @@per_page = 30