fuel / oil

Fuel PHP Framework - Fuel v1.x Oil command-line package
http://fuelphp.com/docs/packages/oil/intro.html
106 stars 67 forks source link

Oil enum not allowing seperator characters #216

Closed InsiteFX closed 11 years ago

InsiteFX commented 11 years ago

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: pregmatch('/([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