Skip to content

Commit

Permalink
Fix typo in regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
micabot authored and FLinares committed Sep 30, 2015
1 parent 139bbe3 commit ad0223c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ angular.module('faradayApp')
url_pattern = new RegExp('^(http|https):\\/\\/?');

var cve_pattern = new RegExp(/^CVE-\d{4}-\d{4,7}$/),
cwe_pattern = new RegExp(/^CWE-\d{4}-\d{4,7}$/),
edb_pattern = new RegExp(/^EDB-ID:\d{1,}$/),
osvdb_pattern = new RegExp(/^OSVDB:\d{1,}$/);
cwe_pattern = new RegExp(/^CWE-\d{4,7}$/),
edb_pattern = new RegExp(/^EDB-ID:\s?\d{1,}$/),
osvdb_pattern = new RegExp(/^OSVDB:\s?\d{1,}$/);

var cve = text.search(cve_pattern),
cwe = text.search(cwe_pattern),
Expand Down

0 comments on commit ad0223c

Please sign in to comment.