mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-07 23:32:35 +00:00
CBind.js: ignore case in regex
This commit is contained in:
parent
281ad45b5d
commit
fbdf4ca751
@ -36,13 +36,13 @@ Ext.define('Proxmox.Mixin.CBind', {
|
||||
cdata = cbind[prop];
|
||||
|
||||
found = false;
|
||||
if (match = /^\{(!)?([a-z_][a-z0-9_]*)\}$/.exec(cdata)) {
|
||||
if (match = /^\{(!)?([a-z_][a-z0-9_]*)\}$/i.exec(cdata)) {
|
||||
var cvalue = getConfigValue(match[2]);
|
||||
if (match[1]) cvalue = !cvalue;
|
||||
obj[prop] = cvalue;
|
||||
found = true;
|
||||
} else {
|
||||
obj[prop] = cdata.replace(/{([a-z_][a-z0-9_]*)\}/g, function(match, cname) {
|
||||
obj[prop] = cdata.replace(/{([a-z_][a-z0-9_]*)\}/ig, function(match, cname) {
|
||||
var cvalue = getConfigValue(cname);
|
||||
found = true;
|
||||
return cvalue;
|
||||
|
Loading…
Reference in New Issue
Block a user