@symbo.ls/scratch
Advanced tools
Comparing version 0.7.7 to 0.7.8
@@ -5,3 +5,3 @@ { | ||
"author": "symbo.ls", | ||
"version": "0.7.7", | ||
"version": "0.7.8", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "src" |
@@ -153,3 +153,3 @@ 'use strict' | ||
// if subsequence is not set but value is applied | ||
if (absValue.length === 2) { | ||
if (!sequence[absValue] && absValue.length === 2) { | ||
if (CONFIG.verbose) console.warn(absValue, '- value is not found because `subSequence` is set to false') | ||
@@ -183,8 +183,10 @@ absValue = absValue.slice(0, 1) | ||
export const findHeadingLetter = (h1Matches, index) => numToLetterMap[h1Matches - index] | ||
export const findHeadings = propertyNames => { | ||
const { h1Matches, sequence } = propertyNames | ||
return new Array(6).fill(null).map((_, i) => { | ||
const findLetter = numToLetterMap[h1Matches - i] | ||
const findLetter = findHeadingLetter(h1Matches, i) | ||
return sequence[findLetter] | ||
}) | ||
} |
41002
1274