Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created August 5, 2015 04:51
Show Gist options
  • Save anonymous/705af052c271c2506f97 to your computer and use it in GitHub Desktop.
Save anonymous/705af052c271c2506f97 to your computer and use it in GitHub Desktop.
array = ["\.TEST$"]
path = "file.TEST"
puts path.match(Regex.union(array))
doesn't match. wtf?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment