Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
fix(annotations): Split up classification word.
Browse files Browse the repository at this point in the history
Closes #634
  • Loading branch information
Matthew Schranz committed Mar 17, 2015
1 parent 18561bd commit e38b7d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/scripts/annotations/annotations.table.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ module ngApp.projects.models {
{
displayName: "Classification",
id: "classification",
template: function(field) {
var original = field.val;
original = original.split(/(?=[A-Z])/).join(" ");

return original;
},
sortable: true
},
{
Expand Down
1 change: 1 addition & 0 deletions app/scripts/components/ui/string/string.filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ module ngApp.components.ui.string {
var humanified;

if (facetTerm) {
original = original.split(/(?=[A-Z])/).join(" ");
humanified = original.replace(/\./g, " ").trim();
} else {
split = original.split(".");
Expand Down

0 comments on commit e38b7d4

Please sign in to comment.