diff --git a/coloring/coloring.js b/coloring/coloring.js index 08d3cc8..8f1b502 100644 --- a/coloring/coloring.js +++ b/coloring/coloring.js @@ -523,10 +523,14 @@ function findMinMaxCoords (nodes) { } +function isBenchmark(text){ + return text.replace(/^\s+|\s+$/g, '').split(REGEX_NEWLINE).length > 2 +} + function loadBenchmark(text){ parseInputText(text); } function loadSolution(text){ parseSolutionText(text); -} \ No newline at end of file +} diff --git a/coloring/index.html b/coloring/index.html index d5912e2..c18ca97 100644 --- a/coloring/index.html +++ b/coloring/index.html @@ -26,9 +26,8 @@