Browse Source

correct inconsistent title

Kylie Jo Swistak 4 years ago
parent
commit
1256c50f91
1 changed files with 4 additions and 4 deletions
  1. 4 4
      app/models/characters.rb

+ 4 - 4
app/models/characters.rb

@@ -56,7 +56,7 @@ class Character < ActiveRecord::Base
       "Rating" => "rating",
       "Current Location" => "location",
       "DM Notes" => "dm_notes",
-      "Base Form ID" => "alt_form",
+      "Base Character ID" => "alt_form",
       "Edit Key (ignore)" => "edit_url",
     }
 
@@ -95,8 +95,8 @@ class Character < ActiveRecord::Base
     active = case app.title
              when /Personal Character/
                'Active'
-             when /Alternate Form/
-               'Alternate Form'
+             when /Alternative Form/
+               'Alt Form'
              when /NPC/
                'NPC'
              when /Archived Character/
@@ -123,7 +123,7 @@ class Character < ActiveRecord::Base
       if db_column == 'shiny'
         hash[db_column] = field.value.match(/yes/i) ? true : false
       elsif db_column == 'aliases'
-        hash[db_column] = field.value.split(/\s?(\||,)\s?/)
+        hash[db_column] = field.value.split(/\s?\|\s?/)
       else
         hash[db_column] = field.value
       end