mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-01 19:48:08 +00:00
Feature: Improve label experience (#975)
Co-authored-by: Sojan <sojan@pepalo.com>
This commit is contained in:
8
lib/regex_helper.rb
Normal file
8
lib/regex_helper.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
module RegexHelper
|
||||
# user https://rubular.com/ to quickly validate your regex
|
||||
|
||||
# the following regext needs atleast one character which should be
|
||||
# valid unicode letter, unicode number, underscore, hyphen
|
||||
# shouldn't start with a underscore or hyphen
|
||||
UNICODE_CHARACTER_NUMBER_HYPHEN_UNDERSCORE = Regexp.new('\A[\p{L}\p{N}]+[\p{L}\p{N}_-]+\Z')
|
||||
end
|
||||
Reference in New Issue
Block a user