From a4bd12744da2862e24e26dfcfeb5bf272559e7d7 Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Thu, 4 Oct 2007 18:45:32 +0000 Subject: [PATCH] ActionItem85: creating a central place for usefull constants --- lib/noosfero.rb | 2 ++ lib/noosfero/constants.rb | 3 +++ 2 files changed, 5 insertions(+), 0 deletions(-) create mode 100644 lib/noosfero/constants.rb diff --git a/lib/noosfero.rb b/lib/noosfero.rb index 1e093ca..83cb9cc 100644 --- a/lib/noosfero.rb +++ b/lib/noosfero.rb @@ -15,3 +15,5 @@ module Noosfero Regexp.new(pattern) end end + +require 'noosfero/constants' diff --git a/lib/noosfero/constants.rb b/lib/noosfero/constants.rb new file mode 100644 index 0000000..4c0fe80 --- /dev/null +++ b/lib/noosfero/constants.rb @@ -0,0 +1,3 @@ +module Noosfero::Constants + EMAIL_FORMAT = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z/i +end -- libgit2 0.21.2