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:
Rodolphe Breard 2015-10-18 19:27:51 +02:00
parent c11e41624b
commit 90e6eb1bd8

View file

@ -27,7 +27,7 @@ function! s:IncrementSerial(old_date, old_nb)
endfunction endfunction
function! s:DNSSerialUpdate() function! s:DNSSerialUpdate()
let pattern = '\(\d\{8}\)\(\d\{2}\)\s*;\s*\cserial' let pattern = '\(\d\{8}\)\(\d\+\)\s*;\s*\cserial'
if search(pattern) == 0 if search(pattern) == 0
echom "No serial found." echom "No serial found."
return 0 return 0