浏览代码

Add UUID regex to 'Regular expression' operation

I use this one often so I'm sure others will like it too :)
Clément Notin 1 年之前
父节点
当前提交
0bf7852e83
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/core/operations/RegularExpression.mjs

+ 4 - 0
src/core/operations/RegularExpression.mjs

@@ -83,6 +83,10 @@ class RegularExpression extends Operation {
                         name: "Strings",
                         name: "Strings",
                         value: "[A-Za-z\\d/\\-:.,_$%\\x27\"()<>= !\\[\\]{}@]{4,}"
                         value: "[A-Za-z\\d/\\-:.,_$%\\x27\"()<>= !\\[\\]{}@]{4,}"
                     },
                     },
+                    {
+                        name: "UUID (any version)",
+                        value: "[0-9a-fA-F]{8}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{4}\\b-[0-9a-fA-F]{12}"
+                    },
                 ],
                 ],
                 "target": 1
                 "target": 1
             },
             },