All RegExp static properties that expose the last match state globally are deprecated.
Source: MDN
See e.g.:
|
// get the number of the selector id and |
|
// use it as the select key |
|
/.*?_(\d+)/.exec(IDSelector); |
|
IdentifierKey = RegExp.$1; |
|
// Get field key and name by reg exp. |
|
/(\d+)_(.+)/.exec($('#SelectFieldList option:selected').val()); |
|
FieldKey = RegExp.$1; |
|
FieldName = RegExp.$2; |
Related to #4824
Source: MDN
See e.g.:
otobo/var/httpd/htdocs/js/Core.Agent.Admin.DynamicFieldDB.js
Lines 45 to 48 in 282ea49
otobo/var/httpd/htdocs/js/Core.Agent.DynamicFieldDBSearch.js
Lines 758 to 761 in 282ea49
Related to #4824