Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! feat(naming.cell.match): initial implemen…
Browse files Browse the repository at this point in the history
…tation
  • Loading branch information
qfox committed Apr 6, 2018
1 parent 32292b1 commit 05bdbce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/naming.cell.match/cell-match.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ const buildPathParseMethod = ({ fs: { pattern, delims: dd = {}, scheme = 'nested
for (let i = 0; i < parts.length - j; i += 1) {
const el = parts[i + j];
if (i % 2 === 0) {
const parts = el.split('/');
res.push(parts.map(part => resc(part)).join('(?:/'));
[].unshift.apply(deeper, Array.from(new Array(parts.length - 1)).map(() => ')?'));
const subParts = el.split('/');
res.push(subParts.map(part => resc(part)).join('(?:/'));
[].unshift.apply(deeper, Array.from(new Array(subParts.length - 1)).map(() => ')?'));
} else if (Array.isArray(el)) {
res.push('(?:');
join(el, 1);
Expand Down

0 comments on commit 05bdbce

Please sign in to comment.