From a1795c204dae9a1070bbab980ffdbf91d00b3688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hubert=20Figui=C3=A8re?= Date: Wed, 10 Jul 2013 23:41:14 -0400 Subject: [PATCH] Bug 891395 - Fix regexp that matches HiDPI. This avoid overriding apn.json. --- build/webapp-zip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/webapp-zip.js b/build/webapp-zip.js index c3960ab62573..bce167fab868 100644 --- a/build/webapp-zip.js +++ b/build/webapp-zip.js @@ -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);