Skip to content

Commit 543ac4e

Browse files
committed
Summary: Add simple utility for turning rfc1234 doc alias names into RFC1234
- Legacy-Id: 8899
1 parent 5bc15c4 commit 543ac4e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

ietf/doc/utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,3 +517,9 @@ def get_initial_notify(doc,extra=None):
517517
receivers.extend(extra)
518518

519519
return ", ".join(set([x.strip() for x in receivers]))
520+
521+
def uppercase_std_abbreviated_name(name):
522+
if re.match('(rfc|bcp|std|fyi) ?[0-9]+$', name):
523+
return name.upper()
524+
else:
525+
return name

0 commit comments

Comments
 (0)