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

2
package-lock.json

@ -1325,7 +1325,7 @@
},
"ncp": {
"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=",
"dev": true
},

Loading…
Cancel
Save