mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-20 14:27:42 +00:00
Allow some SIG refs to be picked up from comments without separate SIG name. Closes #134
This commit is contained in:
@@ -19,6 +19,11 @@ def get_sig_ref_info(sig, ref_id):
|
||||
logger.debug("Failed to look up sig_ref info, sig or ref were not set.")
|
||||
return None
|
||||
|
||||
# Sometimes we allow spaces instead of dashes in references due to common usage that way, but official reference
|
||||
# lists never do, so convert them here.
|
||||
ref_id.replace(" ", "-")
|
||||
|
||||
# Prepare the object to be returned
|
||||
sig_ref = SIGRef(sig=sig, id=ref_id)
|
||||
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user