Girocco/Project.pm: add _normalize_rmtype function
commit27b3e364e6267bb7a0e5744729b31c292f9f3030
authorKyle J. McKay <mackyle@gmail.com>
Mon, 1 Mar 2021 18:40:58 +0000 (1 11:40 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 1 Mar 2021 18:40:58 +0000 (1 11:40 -0700)
tree0a1756d73bfbc4fe1574bbde68f7a3da86158417
parent7dbfd30d0d2be639fe1fec1c4b99654c2d51a1df
Girocco/Project.pm: add _normalize_rmtype function

Add a few extra aliases for possible incoming values of
the 'girocco.rmtype' config value.  Notably various possible
file name extensions as well as content-type names.

Provide a semi-private _normalize_rmtype function that
returns one of the three "normalized" rmtype values for
its single argument or optionally "" if unrecognized type.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Project.pm