Sha256: 63d85b2fa2d187fa862d06188217b9e3ea9771a44040c6d4daa556ee52011218
Contents?: true
Size: 623 Bytes
Versions: 3
Compression:
Stored size: 623 Bytes
Contents
# frozen_string_literal: true # Locker subsystem module Locker # Regex definitions module Regex LABEL_REGEX = /(?<label>[\.\w\s-]+)(\s)?/ LABEL_WILDCARD_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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lita-locker-1.2.0 | lib/locker/regex.rb |
lita-locker-1.1.1 | lib/locker/regex.rb |
lita-locker-1.1.0 | lib/locker/regex.rb |