dokuwiki-plugin-bureaucracy icon indicating copy to clipboard operation
dokuwiki-plugin-bureaucracy copied to clipboard

Regexp forced to case insensitive

Open vincowl opened this issue 6 years ago • 0 comments

Regexp defined by users for textboxes (for example) are forced to be case insensitive, which disallow to validate rules such as /^[A-Z]+$/ to force user to write its data only with uppercased words. As is, a user could validate a data containing lowercase characters

Proposition : line https://github.com/splitbrain/dokuwiki-plugin-bureaucracy/blob/decc49898270e2a0a21fae6086d521c51c787f4e/helper/field.php#L388 should be return @preg_match('/' . $d . '/', $value); ('/i' removed)

vincowl avatar Feb 26 '18 15:02 vincowl