From 0ef0012ef158f89b71c0e66f77af5628fda16378 Mon Sep 17 00:00:00 2001 From: Lee Reilly Date: Thu, 16 Feb 2012 15:42:28 -0800 Subject: [PATCH] Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index e83f087c51..75a50437c4 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ nigel@stanford.edu, bawbag@cs.strath.ac.uk, lee@wunizar.es, terrence@ubishops.ca # Usage ## Verify Email Addresses - +```ruby Swot::is_academic?('lreilly@stanford.edu') # true Swot::is_academic?('lreilly@slac.stanford.edu') # true Swot::is_academic?('lreilly@strath.ac.uk') # true @@ -27,15 +27,15 @@ nigel@stanford.edu, bawbag@cs.strath.ac.uk, lee@wunizar.es, terrence@ubishops.ca Swot::is_academic?('lee@gmail.com') # false Swot::is_academic?('lee@stanford.edu.com') # false Swot::is_academic?('lee@strath.ac.uk.com') # false - +``` ## Verify Domain Names - - Swot::academic?('harvard.edu') # true - Swot::academic?('www.harvard.edu') # true - Swot::academic?('http://www.harvard.edu') # true - Swot::academic?('http://www.kink.com') # false - Swot::academic?('http://www.rangers.co.uk') # false - +```ruby + Swot::is_academic?('harvard.edu') # true + Swot::is_academic?('www.harvard.edu') # true + Swot::is_academic?('http://www.harvard.edu') # true + Swot::is_academic?('http://www.kink.com') # false + Swot::is_academic?('http://www.rangers.co.uk') # false +``` # What is a swot? [UrbanDictionary will fill you in](http://www.urbandictionary.com/define.php?term=swot) ಠ_ಠ