Accept an unlimited number of digits for the revision id.
Having exactly two digits is very common but also restrictive. Hence, it is now required to have at least one digit. However, the new serial will be on at least two digits.
This commit is contained in:
parent
c11e41624b
commit
90e6eb1bd8
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ function! s:IncrementSerial(old_date, old_nb)
|
|||
endfunction
|
||||
|
||||
function! s:DNSSerialUpdate()
|
||||
let pattern = '\(\d\{8}\)\(\d\{2}\)\s*;\s*\cserial'
|
||||
let pattern = '\(\d\{8}\)\(\d\+\)\s*;\s*\cserial'
|
||||
if search(pattern) == 0
|
||||
echom "No serial found."
|
||||
return 0
|
||||
|
|
Reference in a new issue