Skip to content

Commit

Permalink
try regex again, but more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Apr 29, 2024
1 parent 1b7a0f6 commit 0788c34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function massageUseIndex(useIndex) {
}

return cleanedUseIndex.map(function (name) {
return name.substr(8); // remove _design/ prefix
return name.replace(/^_design\//, '');
});
}

Expand Down

0 comments on commit 0788c34

Please sign in to comment.