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

Oil enum not allowing seperator characters #216

Closed
InsiteFX opened this issue Sep 26, 2013 · 0 comments
Closed

Oil enum not allowing seperator characters #216

InsiteFX opened this issue Sep 26, 2013 · 0 comments

Comments

@InsiteFX
Copy link

Why will it not accept an underscore or a space then? I can enter them in the field name using git bash.

Oil generate line 683:
preg_match('/([a-z0-9_-]+)(?:[([0-9a-z,\s]+)])?/i', $part, $part_matches);

RegExp: /([a-z0-9_-]+)(?:[([0-9a-z,\s]+)])?/i
pattern: ([a-z0-9_-]+)(?:[([0-9a-z,\s]+)])?
flags: i
2 capturing groups:
group 1: ([a-z0-9_-]+) <-- field name
group 2: ([0-9a-z,\s]+) <-- field value - this is not allowing for the underscore.

This is FuelPHP 1.7 dev

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

No branches or pull requests

1 participant