From 3ab079dd9fe9132ede6c6b4239cc246e038d5125 Mon Sep 17 00:00:00 2001 From: Kyle Date: Tue, 15 Jul 2025 14:45:47 -0400 Subject: [PATCH] Cry real tears --- lib/regex_lab.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/regex_lab.rb b/lib/regex_lab.rb index 60552abf..700a4d09 100644 --- a/lib/regex_lab.rb +++ b/lib/regex_lab.rb @@ -1,19 +1,19 @@ def starts_with_a_vowel?(word) - + word.match?(/^[aeiou]/i) end def words_starting_with_un_and_ending_with_ing(text) - + text.scan(/\bun\w+ing\b/) end def words_five_letters_long(text) - + text.scan(/\b\w{5}\b/) end def first_word_capitalized_and_ends_with_punctuation?(text) - + text.match?(/^[A-Z]\w*\b.*[[:punct:]]$/) end def valid_phone_number?(phone) - + phone.match?(/\A(?:\+1\s?)?(?:\(?\d{3}\)?[\s.-]?)\d{3}[\s.-]?\d{4}\z/) end