Fix name regex: allow single-letter names

This commit is contained in:
ZyX 2014-07-13 23:11:25 +04:00
parent 27db44ac7a
commit 2fd04348f7
1 changed files with 1 additions and 1 deletions

View File

@ -1209,7 +1209,7 @@ segment_module_spec = Spec().type(unicode).func(check_segment_module).optional()
sub_segments_spec = Spec()
segment_spec = Spec(
type=Spec().oneof(type_keys).optional(),
name=Spec().re('^[a-zA-Z_]\w+$').func(check_segment_name).optional(),
name=Spec().re('^[a-zA-Z_]\w*$').func(check_segment_name).optional(),
exclude_modes=Spec().list(vim_mode_spec()).optional(),
include_modes=Spec().list(vim_mode_spec()).optional(),
draw_hard_divider=Spec().type(bool).optional(),