Created
November 23, 2011 05:59
-
-
Save Raynes/1387993 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn- parse-prefix [{:keys [raw]}] | |
(when-let [[modes prefixes] (rest (re-find #"PREFIX=\((.*?)\)(\S+)" raw))] | |
(zipmap prefixes modes))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment