HomePhabricator

(maint) Update for Elixir 0.15.0

Description

(maint) Update for Elixir 0.15.0

Prior to this commit, ExIrc.Utils.parse_from/2 use Regex.split with
captures; however, this functionality has been removed from Elixir
0.15.0.

For example, Regex.split(~r/(!@\.)/, "n!u@h.n.tld")
in Elixir 0.14.3 would yield
["n", "!", "u", "@", "h", ".", "n", ".", "tld"]
however, in Elixir 0.15.0, this yields
["n", "u", "h", "n", "tld"]

This commit works around this functionality by using explicit regular
expressions for each of the cases, pulling out each of the fields into a
named capture map and relying on the truthiness of the capture map to
trigger a condition match.

Details

Provenance
jeffweiss <jeff.weiss@puppetlabs.com>Authored on Aug 6 2014, 6:23 AM
hrefPushed on Dec 15 2022, 8:05 AM
Parents
rEXIRC31ecdb55c774: Version 0.7.2
Branches
Unknown
Tags
Unknown

Event Timeline