Improve survey Emacs version validation
This commit is contained in:
parent
36917daa89
commit
e4b06e5c07
|
@ -24,8 +24,12 @@ the questions you see now will not neccesarily be in the final survey.",
|
||||||
"Which version of Emacs do you use?",
|
"Which version of Emacs do you use?",
|
||||||
["29 (master/HEAD)" => "29.0",
|
["29 (master/HEAD)" => "29.0",
|
||||||
"28.2", "28.1", "27.2", "27.1", "26.3", :other],
|
"28.2", "28.1", "27.2", "27.1", "26.3", :other],
|
||||||
validators = v -> if isnothing(match(r"^\d+\.\d+$"))
|
validators = v -> if isnothing(match(r"^\d+\.\d+$", v))
|
||||||
"Please give the MAJOR.MINOR version number as your response"
|
"Please give the MAJOR.MINOR version number as your response"
|
||||||
|
elseif parse(VersionNumber, v) < v"18"
|
||||||
|
"Ok, this is pushing the bounds of believability a bit much..."
|
||||||
|
elseif parse(VersionNumber, v) > v"29.0"
|
||||||
|
"You should have mentioned that you're a time traveler!"
|
||||||
end),
|
end),
|
||||||
MultiSelect(:emacs_motivations_current,
|
MultiSelect(:emacs_motivations_current,
|
||||||
"Which features keep you using Emacs?",
|
"Which features keep you using Emacs?",
|
||||||
|
|
Loading…
Reference in New Issue