tracks/javascript/exercises/ocr-numbers/example.js in trackler-2.2.1.37 vs tracks/javascript/exercises/ocr-numbers/example.js in trackler-2.2.1.38

- old
+ new

@@ -1,48 +1,48 @@ 'use strict'; var PATTERNS = { 0: [' _ ', - '| |', - '|_|', - ' '], + '| |', + '|_|', + ' '], 1: [' ', - ' |', - ' |', - ' '], + ' |', + ' |', + ' '], 2: [' _ ', - ' _|', - '|_ ', - ' '], + ' _|', + '|_ ', + ' '], 3: [' _ ', - ' _|', - ' _|', - ' '], + ' _|', + ' _|', + ' '], 4: [' ', - '|_|', - ' |', - ' '], + '|_|', + ' |', + ' '], 5: [' _ ', - '|_ ', - ' _|', - ' '], + '|_ ', + ' _|', + ' '], 6: [' _ ', - '|_ ', - '|_|', - ' '], + '|_ ', + '|_|', + ' '], 7: [' _ ', - ' |', - ' |', - ' '], + ' |', + ' |', + ' '], 8: [' _ ', - '|_|', - '|_|', - ' '], + '|_|', + '|_|', + ' '], 9: [' _ ', - '|_|', - ' _|', - ' '] + '|_|', + ' _|', + ' '] }; function getDigit(text) { for (var digit in PATTERNS) { if (PATTERNS.hasOwnProperty(digit)) { @@ -86,6 +86,6 @@ } exports.convert = function (text) { var rows = splitIntoRows(text); return rows.map(valuesInRow).join(','); -}; \ No newline at end of file +};