diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-10-13 13:12:33 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-10-13 13:14:23 +0100 |
| commit | fa85f0fc32b105bef5948585a7d7a38c2910854b (patch) | |
| tree | 62df5d4c99b3ae89274c848895fa94445f870edb /src/color.cc | |
| parent | b6f2b872b003639e3a596a2e4a1b817529ebd729 (diff) | |
Refactor regex uses, do not reference boost except in regex.hh
Diffstat (limited to 'src/color.cc')
| -rw-r--r-- | src/color.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/color.cc b/src/color.cc index 2dc71af0..d056fb25 100644 --- a/src/color.cc +++ b/src/color.cc @@ -1,6 +1,7 @@ #include "color.hh" #include "exception.hh" +#include "regex.hh" namespace Kakoune { @@ -31,7 +32,7 @@ Color str_to_color(StringView color) if (color == "white") return Colors::White; static const Regex rgb_regex{"rgb:[0-9a-fA-F]{6}"}; - if (boost::regex_match(color.begin(), color.end(), rgb_regex)) + if (regex_match(color.begin(), color.end(), rgb_regex)) { unsigned l; sscanf(color.zstr() + 4, "%x", &l); |
