mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 07:02:51 +08:00
fix(prepare): fix pattern used to collect image resources (#1084)
The pattern contained an additional plus that slipped in during the
refactoring done in #842. See [the diff][1] for details.
[1]: 09e8248d1f (diff-26c51bfaa44eff1e46fd61ec3225ec13L640-R650)
This commit is contained in:
parent
33476b4754
commit
206238893b
2
bin/templates/cordova/lib/prepare.js
vendored
2
bin/templates/cordova/lib/prepare.js
vendored
@ -664,7 +664,7 @@ function cleanIcons (projectRoot, projectConfig, platformResourcesDir) {
|
|||||||
*/
|
*/
|
||||||
function mapImageResources (rootDir, subDir, type, resourceName) {
|
function mapImageResources (rootDir, subDir, type, resourceName) {
|
||||||
const pathMap = {};
|
const pathMap = {};
|
||||||
const pattern = new RegExp(type + '+-.+');
|
const pattern = new RegExp(type + '-.+');
|
||||||
utils.scanDirectory(path.join(rootDir, subDir), pattern).forEach(function (drawableFolder) {
|
utils.scanDirectory(path.join(rootDir, subDir), pattern).forEach(function (drawableFolder) {
|
||||||
const imagePath = path.join(subDir, path.basename(drawableFolder), resourceName);
|
const imagePath = path.join(subDir, path.basename(drawableFolder), resourceName);
|
||||||
pathMap[imagePath] = null;
|
pathMap[imagePath] = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user