CCS Backend merge requests
https://repo.getmonero.org/monero-project/ccs-back/-/merge_requests
2022-10-31T02:55:43Z
https://repo.getmonero.org/monero-project/ccs-back/-/merge_requests/17
allow for spaces after "---"
2022-10-31T02:55:43Z
plowsoff
allow for spaces after "---"
```php
<?php
$contents = preg_split('/\r?\n?---(|\s+)\r?\n/m', "--- \nhello:1\nworld:2\nok:1\nok:2\n---\nsaac");
if (sizeof($contents) < 3) {
throw new \Exception("Failed to parse proposal, can't find YAML description surrounded by...
```php
<?php
$contents = preg_split('/\r?\n?---(|\s+)\r?\n/m', "--- \nhello:1\nworld:2\nok:1\nok:2\n---\nsaac");
if (sizeof($contents) < 3) {
throw new \Exception("Failed to parse proposal, can't find YAML description surrounded by '---' lines");
} else {
echo "\nIts ok";
}
?>
```
https://onlinephp.io/
(|\s+) = nothing OR space(s)
"--- " "---" "--- " = ok