Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci skip] route placeholders 'id' to 'num' #2891

Merged
merged 2 commits into from
Apr 27, 2020
Merged

[ci skip] route placeholders 'id' to 'num' #2891

merged 2 commits into from
Apr 27, 2020

Conversation

nyufeng
Copy link
Contributor

@nyufeng nyufeng commented Apr 27, 2020

fix : #2889 #2888

	/**
	 * Defined placeholders that can be used
	 * within the
	 *
	 * @var array
	 */
	protected $placeholders = [
		'any'      => '.*',
		'segment'  => '[^/]+',
		'alphanum' => '[a-zA-Z0-9]+',
		'num'      => '[0-9]+',
		'alpha'    => '[a-zA-Z]+',
		'hash'     => '[^/]+',
	];

@lonnieezell lonnieezell merged commit 2e2d3f2 into codeigniter4:develop Apr 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bug: Routes - missing (:id)
3 participants