Would like to see the following logic added to the really cool (!) Stack Snippets feature: if the question is tagged jquery (when creating a snippet in an answer):
If a specific jQuery version is tagged, preselect that jQuery version in the snippet editor. (This isn't likely, of course.)
If not, but running the regex
/jquery\s*([\d.]+)/
on the question text results in a capture that's a starts-with match for a jQuery version offered in the snippet editor, preselect that version in the snippet editor. So"jQuery 1.11"
would (as of this writing) preselect jQuery 1.11.1 (the most recently 1.11 offered),"jQuery 1.9"
would preselect jQuery 1.9.1.,"jQuery 2.1.1"
would preselect jQuery 2.1.1, etc.If no specific version can be found, default (for now) to the latest in the 1.x line. (Someday we can shift to 2.x.)
If multiple versions are found, preselect the highest version found (again with the starts-with logic).
Just a convenience thing.