2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-10 13:23:25 +00:00

Highligting for Recipe now working. Discovered bug when highlighting on a test case

This commit is contained in:
d98762625
2019-02-08 14:28:53 +00:00
parent 9af5e40071
commit 58a8af20a6
3 changed files with 45 additions and 28 deletions

View File

@@ -157,9 +157,9 @@ class Chef {
* @param {number} pos.end - The end offset.
* @returns {Object}
*/
calculateHighlights(recipeConfig, direction, pos) {
async calculateHighlights(recipeConfig, direction, pos) {
const recipe = new Recipe(recipeConfig);
const highlights = recipe.generateHighlightList();
const highlights = await recipe.generateHighlightList();
if (!highlights) return false;