Commit 75c1ed2d authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Update RecordPubli to make REG_INITIAL working with more than 2 first names (cds2159843).

parent 7ade5798
......@@ -37,7 +37,8 @@ MSG_INVALID_FMT = "Invalid format for author"
# The MARC12 keys containing paper reference
PAPER_REFERENCE_KEYS = set(["c", "p", "v", "y"])
REG_INITIAL = initial = r"^(\w+)\.?(\-)* *(\w+)*\.?$"
# Limit the number of first name to two (others will be ignored)
REG_INITIAL = initial = r"^(\w+)\.?(\-)* *(\w+)*\.?"
def to_initial(x, y, z):
......
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