-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from niels-bosman/feature/banned-words
Feature / Banned words
- Loading branch information
Showing
6 changed files
with
79 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/** | ||
* All forbidden words in license plates. | ||
* | ||
* @type {RegExp[]} | ||
*/ | ||
const forbiddenWords: string[] = [ | ||
'GVD', | ||
'KKK', | ||
'KVT', | ||
'LPF', | ||
'NSB', | ||
'PKK', | ||
'PSV', | ||
'TBS', | ||
'SS', | ||
'SD', | ||
'PVV', | ||
'SGP', | ||
'VVD', | ||
]; | ||
|
||
export default forbiddenWords; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import LicensePlate from './LicensePlate'; | ||
import LicensePlate from './license-plate'; | ||
|
||
export default LicensePlate; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
/** | ||
* All dutch available sidecodes. | ||
* | ||
* @type {RegExp[]} | ||
*/ | ||
const sidecodes: RegExp[] = [ | ||
/^[a-zA-Z]{2}[0-9]{2}[0-9]{2}$/, // [1] => XX-99-99 | ||
/^[0-9]{2}[0-9]{2}[a-zA-Z]{2}$/, // [2] => 99-99-XX | ||
/^[0-9]{2}[a-zA-Z]{2}[0-9]{2}$/, // [3] => 99-XX-99 | ||
/^[a-zA-Z]{2}[0-9]{2}[a-zA-Z]{2}$/, // [4] => XX-99-XX | ||
/^[a-zA-Z]{2}[a-zA-Z]{2}[0-9]{2}$/, // [5] => XX-XX-99 | ||
/^[0-9]{2}[a-zA-Z]{2}[a-zA-Z]{2}$/, // [6] => 99-XX-XX | ||
/^[0-9]{2}[a-zA-Z]{3}[0-9]$/, // [7] => 99-XXX-9 | ||
/^[0-9][a-zA-Z]{3}[0-9]{2}$/, // [8] => 9-XXX-99 | ||
/^[a-zA-Z]{2}[0-9]{3}[a-zA-Z]$/, // [9] => XX-999-X | ||
/^[a-zA-Z][0-9]{3}[a-zA-Z]{2}$/, // [10] => X-999-XX | ||
/^[a-zA-Z]{3}[0-9]{2}[a-zA-Z]$/, // [11] => XXX-99-X | ||
/^[a-zA-Z][0-9]{2}[a-zA-Z]{3}$/, // [12] => X-99-XXX | ||
/^[0-9][a-zA-Z]{2}[0-9]{3}$/, // [13] => 9-XX-999 | ||
/^[0-9]{3}[a-zA-Z]{2}[0-9]$/, // [14] => 999-XX-9 | ||
]; | ||
|
||
export default sidecodes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters