Skip to content

Commit

Permalink
fix: use preview exception when length is 6
Browse files Browse the repository at this point in the history
  • Loading branch information
iwong-isp committed Jun 26, 2023
1 parent 1bb8b86 commit e2b8649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isp-functions/noun-deps.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = targetValue => {
// Split into path pieces ignoring blank/empty ones and params.
let pieces = targetValue.split('/').filter(i => !!i);

if ((pieces.length === 1 && pieces[0] === 'search') || pieces[0] === 'me' || pieces[0] === 'cust' || pieces.length >= 6 && pieces[4] === 'preview') {
if ((pieces.length === 1 && pieces[0] === 'search') || pieces[0] === 'me' || pieces[0] === 'cust' || pieces.length === 6 && pieces[4] === 'preview') {
// Top-level exceptions. Skip.
return;
}
Expand Down

0 comments on commit e2b8649

Please sign in to comment.