2019-12-02 15:47:02 +00:00
|
|
|
/**
|
2019-12-03 15:03:48 +00:00
|
|
|
* A class to make the input/output validation checks easier to define.
|
2019-12-02 15:47:02 +00:00
|
|
|
*/
|
|
|
|
class magicObject {
|
|
|
|
/**
|
|
|
|
* @param inRegexes
|
|
|
|
* @param outRegexes
|
2019-12-06 12:24:15 +00:00
|
|
|
* @param mimeCheck
|
2019-12-02 15:47:02 +00:00
|
|
|
*/
|
2019-12-06 12:24:15 +00:00
|
|
|
constructor (inRegexes = null, outRegexes = null, mimeCheck = null) {
|
2019-12-02 15:47:02 +00:00
|
|
|
this.inRegexes = inRegexes;
|
|
|
|
this.outRegexes = outRegexes;
|
2019-12-06 12:24:15 +00:00
|
|
|
this.mimeCheck = mimeCheck;
|
2019-12-02 15:47:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
} export default magicObject;
|