Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #10908 from hfiguiere/bug891395
Browse files Browse the repository at this point in the history
Bug 891395 - Fix regexp that matches HiDPI. This avoid overriding apn.json, r=timdream
  • Loading branch information
timdream committed Jul 11, 2013
2 parents 44eda59 + a1795c2 commit f04f454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/webapp-zip.js
Expand Up @@ -344,7 +344,7 @@ Gaia.webapps.forEach(function(webapp) {

// Add not only file itself but all its hidpi-suffixed versions.
let fileNameRegexp = new RegExp(
'^' + file.leafName.replace(/(\.[a-z]+$)/, '@?.*x?\\$1') + '$');
'^' + file.leafName.replace(/(\.[a-z]+$)/, '(@.*x)?\\$1') + '$');
ls(file.parent, false).forEach(function(listFile) {
if (fileNameRegexp.test(listFile.leafName)) {
addToZip(zip, '/shared/resources/' + path, listFile);
Expand Down

0 comments on commit f04f454

Please sign in to comment.