(val: &'a regorus::Value, key: &str)
| 391 | } |
| 392 | |
| 393 | fn get_object_value<'a>(val: &'a regorus::Value, key: &str) -> Option<&'a regorus::Value> { |
| 394 | let key_val = regorus::Value::String(key.into()); |
| 395 | match val { |
| 396 | regorus::Value::Object(map) => map.get(&key_val), |
| 397 | _ => None, |
| 398 | } |
| 399 | } |
| 400 | |
| 401 | /// Check a glob pattern for obvious syntax issues. |
| 402 | /// |
no test coverage detected