From 90e6eb1bd85c9e1a31f5d02329f57943dfc153da Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sun, 18 Oct 2015 19:27:51 +0200 Subject: [PATCH] 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. --- plugin/dnsserial.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/dnsserial.vim b/plugin/dnsserial.vim index 421dbc2..0012286 100644 --- a/plugin/dnsserial.vim +++ b/plugin/dnsserial.vim @@ -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