When creating a new trigger in ZABBIX 1.3.8, it fails with "Expression [$expression] does not match to [server:key.func(param)]" when there is a space in the server name
root@ops01:/var/www/html/zabbix/include# diff triggers.inc.php*
root@ops01:/var/www/html/zabbix/include# diff triggers.inc.php*
Code:
173c173
< '^\{([0-9a-zA-Z\_\.[.-.]\$\ ]+)\:([]\[0-9a-zA-Z!\_\*\/\.\,\:\(\)\+ [.-.]\$]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$');
---
> '^\{([0-9a-zA-Z\_\.[.-.]\$]+)\:([]\[0-9a-zA-Z!\_\*\/\.\,\:\(\)\+ [.-.]\$]+)\.([a-z]{3,11})\(([#0-9a-zA-Z\_\/\.\,[:space:]]+)\)\}$');
Comment