<commit_before><?php

defined('C5_EXECUTE') or die("Access Denied.");
/**
 * @var $router \Concrete\Core\Routing\Router
 */
$router->all('/render/', 'Block::render');
$router->all('/action/add/{cID}/{arHandle}/{btID}/{action}', 'Block\Action::add');
$router->all('/action/edit/{cID}/{arHandle}/{bID}/{action}', 'Block\Action::edit');
$router->all('/action/add_composer/{ptComposerFormLayoutSetControlID}/{action}', 'Block\Action::add_composer');
$router->all('/action/edit_composer/{cID}/{arHandle}/{ptComposerFormLayoutSetControlID}/{action}', 'Block\Action::edit_composer');
<commit_msg>making new block routes work with requirements in new router<commit_after><?php

defined('C5_EXECUTE') or die("Access Denied.");
/**
 * @var $router \Concrete\Core\Routing\Router
 */
$router->all('/render/', 'Block::render');
$router->all('/action/add/{cID}/{arHandle}/{btID}/{action}', 'Block\Action::add')
    ->setRequirements(['action' => '.+']);
$router->all('/action/edit/{cID}/{arHandle}/{bID}/{action}', 'Block\Action::edit')
    ->setRequirements(['action' => '.+']);
$router->all('/action/add_composer/{ptComposerFormLayoutSetControlID}/{action}', 'Block\Action::add_composer');
$router->all('/action/edit_composer/{cID}/{arHandle}/{ptComposerFormLayoutSetControlID}/{action}', 'Block\Action::edit_composer');

{'fraction_non_alphanumeric': 0.2475171886936593, 'fraction_numerical': 0.0015278838808250573, 'mean_word_length': 7.397435897435898, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5305198', 'n_tokens_mistral': 436, 'n_tokens_neox': 447, 'n_words': 47}