mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-05-15 22:48:00 +02:00
fix: fix regex detection
This commit is contained in:
@@ -1233,7 +1233,7 @@ angular
|
||||
function anonymize() {
|
||||
$scope.anonymize.terms.$setValidity("regex", true);
|
||||
// check if string has regex characters
|
||||
if ($scope.terms && $scope.terms.match(/[-[\]{}()*+?.,\\^$|#\s]/g)) {
|
||||
if ($scope.terms && $scope.terms.match(/[-[\]{}()*+?.,\\^$|#]/g)) {
|
||||
$scope.anonymize.terms.$setValidity("regex", false);
|
||||
}
|
||||
const urlRegex =
|
||||
|
||||
Reference in New Issue
Block a user