oh-my-fish / plugin-emacs

Wrapper for daemon functionality of Emacs.
MIT License
19 stars 10 forks source link

Version extraction regex failed #6

Open inflation opened 6 years ago

inflation commented 6 years ago

The current regex

grep -o "[0-9]\+.[0-9]\+.[0-9]\+"

would fail on version like: GNU Emacs 26.1. A small tweak to

grep -oE "[0-9]+\.[0-9]+(\.[0-9]+)?"

could make it work.

tasmo commented 6 years ago

Or https://github.com/oh-my-fish/plugin-emacs/pull/8