Skip to content

Commit

Permalink
Medina/Laura: Lowercase sheet header
Browse files Browse the repository at this point in the history
  • Loading branch information
lauraionescu committed Oct 10, 2016
1 parent 91e13ec commit c24042a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions spec/util/inputSanitizer-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ describe('InputSanitizer', function(){
sanitizer = new InputSanitizer();
var description = "<b>Hello</b> <script>alert('dangerous');</script>there <h1>heading</h1>";
rawBlip = {
Name: "Hello <script>alert('dangerous');</script>there <h1>blip</h1>",
name: "Hello <script>alert('dangerous');</script>there <h1>blip</h1>",
description: description,
cycle: '<a href="/asd">Adopt</a>',
quadrant: '<strong>techniques & tools</strong>',
Expand All @@ -22,7 +22,7 @@ describe('InputSanitizer', function(){
});

it('strips out all tags from blip name', function(){
expect(blip.Name).toEqual("Hello there blip");
expect(blip.name).toEqual("Hello there blip");
});

it('strips out all tags from blip status', function(){
Expand Down
2 changes: 1 addition & 1 deletion src/util/factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const GoogleSheet = function (sheetId, sheetName) {
if (!quadrants[blip.quadrant]) {
quadrants[blip.quadrant] = new Quadrant(_.capitalize(blip.quadrant));
}
quadrants[blip.quadrant].add(new Blip(blip.Name, cycleMap[blip.cycle], blip.isNew.toLowerCase() === 'true', blip.topic, blip.description))
quadrants[blip.quadrant].add(new Blip(blip.name, cycleMap[blip.cycle], blip.isNew.toLowerCase() === 'true', blip.topic, blip.description))
});

var radar = new Radar();
Expand Down
2 changes: 1 addition & 1 deletion src/util/inputSanitizer.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const InputSanitizer = function () {
var self = {};
self.sanitize = function (blip) {
blip.description = sanitizeHtml(blip.description, relaxedOptions);
blip.Name = sanitizeHtml(blip.Name, restrictedOptions);
blip.name = sanitizeHtml(blip.name, restrictedOptions);
blip.isNew = sanitizeHtml(blip.isNew, restrictedOptions);
blip.cycle = sanitizeHtml(blip.cycle, restrictedOptions);
blip.quadrant = sanitizeHtml(blip.quadrant, restrictedOptions);
Expand Down

0 comments on commit c24042a

Please sign in to comment.