diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-12-27 07:41:09 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-12-27 07:48:35 +0100 |
commit | 0c0c4e6fec54a78c1b41a218dd669d78dbdc046a (patch) | |
tree | cef87785ddd561d8a129fe5f4eb43547fc490f30 /libvaladoc | |
parent | b2ef0ed8d2c37a813f9ad8b35c7a7e4a1d639e1c (diff) | |
download | vala-0c0c4e6fec54a78c1b41a218dd669d78dbdc046a.tar.gz |
Revert "Make more use of native GLib.Regex syntax"
This reverts commit b2ef0ed8d2c37a813f9ad8b35c7a7e4a1d639e1c.
Diffstat (limited to 'libvaladoc')
-rw-r--r-- | libvaladoc/errorreporter.vala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libvaladoc/errorreporter.vala b/libvaladoc/errorreporter.vala index b6035e0fe..68b09a8ef 100644 --- a/libvaladoc/errorreporter.vala +++ b/libvaladoc/errorreporter.vala @@ -137,7 +137,12 @@ public class Valadoc.ErrorReporter : Object { * }}} */ public bool set_colors (string str) { - unowned Regex val_regex = /^\\s*[0-9]+(;[0-9]*)*\\s*$/; + Regex val_regex; + try { + val_regex = new Regex ("^\\s*[0-9]+(;[0-9]*)*\\s*$"); + } catch (RegexError e) { + assert_not_reached (); + } string error_color = null; string warning_color = null; |