Sha256: abe8e1afaf5a602831217436e4399bc2490ff1375a8313fd633ea0b157bb36d0

Contents?: true

Size: 479 Bytes

Versions: 6

Compression:

Stored size: 479 Bytes

Contents

# Locker subsystem
module Locker
  # Regex definitions
  module Regex
    LABEL_REGEX    = /(?<label>[\.\w\s-]+)(\s)?/
    LABELS_REGEX   = /(?<labels>[\.\w\s-]+(?:,\s*[\.\w\s-]+)*)(\s)?/
    RESOURCE_REGEX = /(?<resource>[\.\w-]+)/
    RESOURCES_REGEX = /(?<resources>[\.\w-]+(?:,\s*[\.\w-]+)*)/
    COMMENT_REGEX  = /(\s\#.+)?/
    LOCK_REGEX     = /\(lock\)\s/i
    USER_REGEX     = /(?:@)?(?<username>[\w\s-]+)/
    UNLOCK_REGEX   = /(?:\(unlock\)|\(release\))\s/i
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lita-locker-1.0.5 lib/locker/regex.rb
lita-locker-1.0.4 lib/locker/regex.rb
lita-locker-1.0.3 lib/locker/regex.rb
lita-locker-1.0.2 lib/locker/regex.rb
lita-locker-1.0.1 lib/locker/regex.rb
lita-locker-1.0.0 lib/locker/regex.rb