Skip to content

Commit

Permalink
Specify Type annotations and fixed #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Max van der Schee committed Jan 8, 2019
1 parent 3eff457 commit d53069e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions server/src/Patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ const patterns: string[] = [
"<a(?:.)+?>(?:(?:\\s|\\S)+?(?=<\/a>))<\/a>",
"<img(?:.)+?>",
"<input(?:.)+?>",
"<head(?:.|)+?>(?:(?:\\s|\\S)+?(?=<\/head>))<\/head>",
"<head(?:.|)+?>(?:(?:\\s|\\S|)+?(?=<\/head>))<\/head>",
"<html(?:.)+?>"
];
export const pattern: RegExp = new RegExp(patterns.join('|'), 'ig');

const nonDescriptiveAlts = [
const nonDescriptiveAlts: string[] = [
"alt=\"image\"",
"alt=\"picture\"",
"alt=\"logo\"",
Expand All @@ -35,7 +35,7 @@ const nonDescriptiveAlts = [
];
const nonDescriptiveAltsTogether = new RegExp(nonDescriptiveAlts.join("|"), "i");

const badAltStarts = [
const badAltStarts: string[] = [
"alt=\"image of",
"alt=\"picture of",
"alt=\"logo of",
Expand Down

0 comments on commit d53069e

Please sign in to comment.