public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Search Repo:
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
fix monster Format::DOMAIN regex to allow test.host domains in test mode 
only

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@2555 
567b1171-46fb-0310-a4c9-b4bef9110e78
technoweenie (author)
Thu Dec 14 02:29:38 -0800 2006
commit  992ec105fa23e2e21aaa4e620bc5ba44fcc67720
tree    491c3109bc2453fe65f6b2560dd339207c1c5cdb
parent  b99279e06f009419277129716f83b634747d1d36
...
1
2
 
 
 
 
 
 
 
 
 
 
3
4
5
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
0
@@ -1,5 +1,15 @@
0
 * SVN *
0
 
0
+* update liquid plugin
0
+
0
+* use default test.host domain where possible [courtenay]
0
+
0
+* fix test ensuring that comments, not articles are sanitized for script tags [courtenay]
0
+
0
+* fix articles form for latest rails 1.2 changes to date helpers [courtenay]
0
+
0
+* fix test that breaks in multi-site mode [courtenay]
0
+
0
 * Allow Modules to use #include_into to dynamically mixin to loaded classes (plugin stuff)
0
 
0
 * Allow custom routes.
...
1
2
 
 
3
4
5
...
1
 
2
3
4
5
6
0
@@ -1,5 +1,6 @@
0
 module Format
0
- DOMAIN = /^([a-z0-9]([-a-z0-9]*[a-z0-9])?\.)+((a[cdefgilmnoqrstuwxz]|aero|arpa)|(b[abdefghijmnorstvwyz]|biz)|(c[acdfghiklmnorsuvxyz]|cat|com|coop)|d[ejkmoz]|(e[ceghrstu]|edu)|f[ijkmor]|(g[abdefghilmnpqrstuwy]|gov)|h[kmnrtu]|(i[delmnoqrst]|info|int)|(j[emop]|jobs)|k[eghimnprwyz]|l[abcikrstuvy]|(m[acdghklmnopqrstuvwxyz]|mil|mobi|museum)|(n[acefgilopruz]|name|net)|(om|org)|(p[aefghklmnrstwy]|pro)|qa|r[eouw]|s[abcdeghijklmnortvyz]|(t[cdfghjklmnoprtvwz]|travel)|u[agkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw])$/ unless const_defined?(:DOMAIN)
0
+ # yes this is valid ruby, even if textmate's highlighter can't grok it
0
+ DOMAIN = /^([a-z0-9]([-a-z0-9]*[a-z0-9])?\.)+((a[cdefgilmnoqrstuwxz]|aero|arpa)|(b[abdefghijmnorstvwyz]|biz)|(c[acdfghiklmnorsuvxyz]|cat|com|coop)|d[ejkmoz]|(e[ceghrstu]|edu)|f[ijkmor]|(g[abdefghilmnpqrstuwy]|gov)|(h[kmnrtu]#{RAILS_ENV=='test'?'|host':''})|(i[delmnoqrst]|info|int)|(j[emop]|jobs)|k[eghimnprwyz]|l[abcikrstuvy]|(m[acdghklmnopqrstuvwxyz]|mil|mobi|museum)|(n[acefgilopruz]|name|net)|(om|org)|(p[aefghklmnrstwy]|pro)|qa|r[eouw]|s[abcdeghijklmnortvyz]|(t[cdfghjklmnoprtvwz]|travel)|u[agkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw])$/ unless const_defined?(:DOMAIN)
0
   STRING = /^[a-z0-9-]+$/
0
   EMAIL = /(\A(\s*)\Z)|(\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\Z)/i
0
 end

Comments

    No one has commented yet.