[pve-devel] [PATCH manager] parser: fix case sensitivity when classifying mountpoints
Wolfgang Bumiller
w.bumiller at proxmox.com
Thu Mar 17 14:22:22 CET 2016
---
www/manager/Parser.js | 2 +-
www/manager6/Parser.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/manager/Parser.js b/www/manager/Parser.js
index 175e70c..c063a04 100644
--- a/www/manager/Parser.js
+++ b/www/manager/Parser.js
@@ -307,7 +307,7 @@ Ext.define('PVE.Parser', { statics: {
return;
}
- var m = res.file.match(/^([a-z][a-z0-9\-\_\.]*[a-z0-9]):/);
+ var m = res.file.match(/^([a-z][a-z0-9\-\_\.]*[a-z0-9]):/i);
if (m) {
res.storage = m[1];
res.type = 'volume';
diff --git a/www/manager6/Parser.js b/www/manager6/Parser.js
index 68a6b70..7750434 100644
--- a/www/manager6/Parser.js
+++ b/www/manager6/Parser.js
@@ -307,7 +307,7 @@ Ext.define('PVE.Parser', { statics: {
return;
}
- var m = res.file.match(/^([a-z][a-z0-9\-\_\.]*[a-z0-9]):/);
+ var m = res.file.match(/^([a-z][a-z0-9\-\_\.]*[a-z0-9]):/i);
if (m) {
res.storage = m[1];
res.type = 'volume';
--
2.1.4
More information about the pve-devel
mailing list