mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
fix: instead of looking for 'asian' at the start of a word, look for it
after a word boundary. This means it still doesn't get confused with caucasian and it's more flexible whan asian appears inside other text such as 'Caucasian and Asian and Black'
This commit is contained in:
parent
3f44613085
commit
d90a83e510
2 changed files with 75 additions and 32 deletions
|
|
@ -14,7 +14,7 @@ class Race < ApplicationRecord
|
|||
case word
|
||||
when /Native\s*American|American\s*Indian|Alaskan\s*Native|1/i
|
||||
1
|
||||
when /^Asian|Pacific\s*Island|Hawaiian|2/i
|
||||
when /\bAsian|Pacific\s*Island|Hawaiian|2/i
|
||||
2
|
||||
when /Black|African\s*American|3/i
|
||||
3
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue