From ded6f77f1aa7213b2c19b32169bc649e28f9857c Mon Sep 17 00:00:00 2001 From: Brandon Robins Date: Sat, 28 Oct 2017 12:00:47 -0500 Subject: [PATCH] Add module constants --- lib/calligraphy.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/calligraphy.rb b/lib/calligraphy.rb index ad7a1ea..06d646c 100644 --- a/lib/calligraphy.rb +++ b/lib/calligraphy.rb @@ -14,7 +14,14 @@ require 'calligraphy/web_dav_request' module Calligraphy DAV_NS = 'DAV:' + DAV_NO_LOCK_REGEX = /DAV:no-lock/i + DAV_NOT_NO_LOCK_REGEX = /Not\s+/i + ETAG_IF_REGEX = /\[(.+?)\]/ + LOCK_TOKEN_ANGLE_REGEX = /[<>]/ LOCK_TOKEN_REGEX = /<(urn:uuid:.+?)>/ + RESOURCE_REGEX = /^<+(.+?)>\s/ + TAGGED_LIST_REGEX = /\)\s