Fix name regex: allow single-letter names
This commit is contained in:
parent
27db44ac7a
commit
2fd04348f7
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue