Browse Source

Updating after audit (#127)

Signed-off-by: Mary Anthony <mary@blockstack.com>
feat/clarity-updates
Moxiegirl 6 years ago
committed by GitHub
parent
commit
a0bb2322d1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      assets/js/main.js
  2. 2
      package-lock.json

23
assets/js/main.js

@ -8774,11 +8774,12 @@
var _$LiteralSearchStrategy_6 = new LiteralSearchStrategy(); var _$LiteralSearchStrategy_6 = new LiteralSearchStrategy();
function LiteralSearchStrategy() { function LiteralSearchStrategy() {
this.matches = function(str, crit) { this.matches = function(str, crit) {
if (typeof str !== "string") { if (!str) return false;
return false; str = str.trim().toLowerCase();
} crit = crit.toLowerCase();
str = str.trim(); return crit.split(" ").filter(function(word) {
return str.toLowerCase().indexOf(crit.toLowerCase()) >= 0; return str.indexOf(word) >= 0;
}).length > 0;
}; };
} }
"use strict"; "use strict";
@ -8904,11 +8905,9 @@
function merge(defaultParams, mergeParams) { function merge(defaultParams, mergeParams) {
var mergedOptions = {}; var mergedOptions = {};
for (var option in defaultParams) { for (var option in defaultParams) {
if (Object.prototype.hasOwnProperty.call(defaultParams, option)) { mergedOptions[option] = defaultParams[option];
mergedOptions[option] = defaultParams[option]; if (typeof mergeParams[option] !== "undefined") {
if (typeof mergeParams[option] !== "undefined") { mergedOptions[option] = mergeParams[option];
mergedOptions[option] = mergeParams[option];
}
} }
} }
return mergedOptions; return mergedOptions;
@ -8969,10 +8968,6 @@
search: search search: search
}; };
}; };
window.SimpleJekyllSearch.init = window.SimpleJekyllSearch;
if (typeof window.SimpleJekyllSearchInit === "function") {
window.SimpleJekyllSearchInit.call(this, window.SimpleJekyllSearch);
}
function initWithJSON(json) { function initWithJSON(json) {
options.success(json); options.success(json);
_$Repository_4.put(json); _$Repository_4.put(json);

2
package-lock.json

@ -1325,7 +1325,7 @@
}, },
"ncp": { "ncp": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "http://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz", "resolved": "https://registry.npmjs.org/ncp/-/ncp-2.0.0.tgz",
"integrity": "sha1-GVoh1sRuNh0vsSgbo4uR6d9727M=", "integrity": "sha1-GVoh1sRuNh0vsSgbo4uR6d9727M=",
"dev": true "dev": true
}, },

Loading…
Cancel
Save