diff options
author | fiaxh <git@lightrise.org> | 2019-03-14 17:38:48 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2019-03-14 17:39:31 +0100 |
commit | 952ac9548402744ac9b13917255b9e461a96abe5 (patch) | |
tree | 0aa4c1c87b0da5961450cf024b1684e264d13c09 /plugins/omemo | |
parent | fb504308d03e078422422b57323f89ae86dac466 (diff) | |
download | dino-952ac9548402744ac9b13917255b9e461a96abe5.tar.gz dino-952ac9548402744ac9b13917255b9e461a96abe5.zip |
Use regex literals, fixes some compiler warnings
Diffstat (limited to 'plugins/omemo')
-rw-r--r-- | plugins/omemo/src/file_provider.vala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/omemo/src/file_provider.vala b/plugins/omemo/src/file_provider.vala index bda73bfb..938ec0cf 100644 --- a/plugins/omemo/src/file_provider.vala +++ b/plugins/omemo/src/file_provider.vala @@ -17,7 +17,7 @@ public class FileProvider : Dino.FileProvider, Object { public FileProvider(StreamInteractor stream_interactor, Dino.Database dino_db) { this.stream_interactor = stream_interactor; this.dino_db = dino_db; - this.url_regex = new Regex("""^aesgcm://(.*)#(([A-Fa-f0-9]{2}){48}|([A-Fa-f0-9]{2}){44})$"""); + this.url_regex = /^aesgcm:\/\/(.*)#(([A-Fa-f0-9]{2}){48}|([A-Fa-f0-9]{2}){44})$/; stream_interactor.get_module(MessageProcessor.IDENTITY).received_pipeline.connect(new ReceivedMessageListener(this)); } |