Commit 2a8f8eaa authored by Adam P. Goucher's avatar Adam P. Goucher

Accept common names of rules

parent bfb07b58
Pipeline #54768938 passed with stages
in 7 minutes and 47 seconds
#ifndef LIFELIB_VERSION /*
__version__=[x.replace('"', '') for x in '''
*/
#define LIFELIB_VERSION "ll2.2.6"
#define LIFELIB_VERSION "ll2.2.7"
// '''.split() if ('ll' in x)][0][2:]
#endif
......@@ -64,4 +64,9 @@ def sanirule(rulestring, drop_history=False):
else:
rulestring = rulestring.replace('/', '')
commonnames = {'life': 'b3s23', 'pedestrianlife': 'b38s23', 'drylife': 'b37s23', 'highlife': 'b36s23'}
if rulestring in commonnames:
rulestring = commonnames[rulestring]
return rulestring
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment