|
|
|
|
@ -2,7 +2,6 @@ import {Configurator, DocumentDirectory} from "./fileutils";
|
|
|
|
|
import * as path from "path";
|
|
|
|
|
import {buildCardsFromConfig, buildUiFromConfig} from "./viewFactory";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function register() {
|
|
|
|
|
let searchBar = $("#searchfield");
|
|
|
|
|
let searchButton = $("#searchbutton");
|
|
|
|
|
@ -55,7 +54,6 @@ function getFileCardsWithSearchTerm(term): Map<string, object> {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return map;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -125,5 +123,4 @@ function escapeRegExp(term: string): string {
|
|
|
|
|
return term.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
register()
|