Added enclitic for 'd and enclitic examples for clarity

This commit is contained in:
Oliver Jakubiec 2015-03-20 13:12:21 -07:00
parent 90fdcd8c9e
commit 721215b64a
1 changed files with 12 additions and 1 deletions

View File

@ -15,7 +15,18 @@ module Treat::Entities::Entity::Buildable
PunctRegexp = /^[[:punct:]\$]+$/ PunctRegexp = /^[[:punct:]\$]+$/
UriRegexp = /^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/ix UriRegexp = /^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}(([0-9]{1,5})?\/.*)?$/ix
EmailRegexp = /.+\@.+\..+/ EmailRegexp = /.+\@.+\..+/
Enclitics = %w['ll 'm 're 's 't 've n't] Enclitics = [
# EXAMPLE:
"'d", # I'd => I would
"'ll", # I'll => I will
"'m", # I'm => I am
"'re", # We're => We are
"'s", # There's => There is
# Let's => Let us
"'t", # 'Twas => Archaic ('Twas the night)
"'ve", # They've => They have
"n't" # Can't => Can not
]
# Accepted formats of serialized files # Accepted formats of serialized files
AcceptedFormats = ['.xml', '.yml', '.yaml', '.mongo'] AcceptedFormats = ['.xml', '.yml', '.yaml', '.mongo']