Browse Source

tente de corriger un bug dans l'analyse du path

master
vince vince 3 years ago
parent
commit
8c5cbaa52f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      index.php

+ 1
- 1
index.php View File

@ -1,6 +1,6 @@
<?php
define('REQUEST_REGEX', '/^\/(?<supplier>[^\/]+)\/?(?<event>[^\/]+)\/?$/');
define('REQUEST_REGEX', '/^\/(?<supplier>[^\/]+)\/?(?<event>[^\/]+)?\/?$/');
define('SUPPLIER_REGEX', '/^[A-Za-z]\w{0,31}$/');
define('EVENT_REGEX', '/^\d{4}\-[01]\d\-[0123]\d$/');
define('ACTION_REGEX', '/^[a-z]{1,16}$/i');


Loading…
Cancel
Save