-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from nilopc/master
Extended the Router class
- Loading branch information
Showing
4 changed files
with
396 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
/** | ||
* This config file allows you to define Regex to be used in the router.config.php patterns field. | ||
* The default values provided are: | ||
$config['isInteger'] = '([1-9]([0-9]+)?\b)'; | ||
$config['isHex'] = '(0[xX][0-9a-fA-F])'; | ||
$config['isFloat'] = '([-+]?\b[0-9]+(\.[0-9]+)?\b)'; | ||
$config['isBoolean'] = '^([0|1|true|false])'; | ||
$config['isAlphaNumeric'] = '([a-zA-z0-9_\-])'; | ||
$config['isString'] = '([\s\S])'; | ||
*/ | ||
|
||
$config['isInteger'] = '(([1-9]\d?))'; | ||
$config['isHex'] = '(0[xX][0-9a-fA-F])'; | ||
$config['isFloat'] = '([-+]?\b[0-9]+(\.[0-9]+)?\b)'; | ||
$config['isBoolean'] = '^([0|1|true|false])'; | ||
$config['isAlphaNumeric'] = '([a-zA-z0-9_\-])'; | ||
$config['isString'] = '([\s\S])'; | ||
$config['isLocale'] = '([a-zA-Z][a-zA-Z])'; // eg: en | ||
$config['isLongLocale'] = '([a-z][a-z]_[A-Z][A-Z])'; // eg: en_US |
Oops, something went wrong.