parser: fix case sensitivity when classifying mountpoints

This commit is contained in:
Wolfgang Bumiller 2016-03-17 14:22:22 +01:00 committed by Dietmar Maurer
parent c5ccc8d0b7
commit 283b450ec5
2 changed files with 2 additions and 2 deletions

View File

@ -307,7 +307,7 @@ Ext.define('PVE.Parser', { statics: {
return; 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) { if (m) {
res.storage = m[1]; res.storage = m[1];
res.type = 'volume'; res.type = 'volume';

View File

@ -307,7 +307,7 @@ Ext.define('PVE.Parser', { statics: {
return; 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) { if (m) {
res.storage = m[1]; res.storage = m[1];
res.type = 'volume'; res.type = 'volume';