noosfero | Custom fields (#708)
Joenio Costa
gitlab at gitlab.com
Mon Oct 19 17:39:04 BRST 2015
New comment for Merge Request 708
https://gitlab.com/noosfero/noosfero/merge_requests/708#note_2438287
Joenio Costa
I think this won't match UPPERCASE. Take a look in the regex modifier 'i', it makes the regex case insensitive. Example:
```ruby
unless value[/\Ahttp:\/\//i] || value[/\Ahttps:\/\//i]
```
Also, you can simplify this regex a little bit using '?' metacharacter, for example:
```ruby
unless value[/\Ahttps?:\/\//i]
```
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20151019/d86f8786/attachment.html>
More information about the Noosfero-dev
mailing list