Skip to content

Commit

Permalink
fix(prepare): fix pattern used to collect image resources (#1084)
Browse files Browse the repository at this point in the history
The pattern contained an additional plus that slipped in during the
refactoring done in #842. See [the diff][1] for details.

[1]: 09e8248#diff-26c51bfaa44eff1e46fd61ec3225ec13L640-R650
  • Loading branch information
raphinesse authored Oct 6, 2020
1 parent 33476b4 commit 2062388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/templates/cordova/lib/prepare.js
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ function cleanIcons (projectRoot, projectConfig, platformResourcesDir) {
*/
function mapImageResources (rootDir, subDir, type, resourceName) {
const pathMap = {};
const pattern = new RegExp(type + '+-.+');
const pattern = new RegExp(type + '-.+');
utils.scanDirectory(path.join(rootDir, subDir), pattern).forEach(function (drawableFolder) {
const imagePath = path.join(subDir, path.basename(drawableFolder), resourceName);
pathMap[imagePath] = null;
Expand Down

0 comments on commit 2062388

Please sign in to comment.