Skip to content

Commit

Permalink
Re-add regex input option
Browse files Browse the repository at this point in the history
  • Loading branch information
jmerle committed Aug 7, 2020
1 parent 9b71a1d commit 4904656
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -1,5 +1,6 @@
# TBD - TBD
- Added a parser for the non-beta version of Aizu Online Judge
- Re-added the regex input option for the Facebook Coding Competitions parser

# 2.17.4 - August 2nd, 2020
- Fixed the Codeforces contest parser to work with the m1, m2 and m3 subdomains
Expand Down
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -149,6 +149,7 @@ It's not required for a tool to parse all these options, since some of them are
- **input**: An object which is used to configure how to receive input. Supported types:
- **stdin**: Receive input via stdin. No additional options required.
- **file**: Receive input via a file. The file name has to be given via the **fileName** option.
- **regex**: Receive input via a file. The file to use is selected by taking the most recently modified that matches the given regex. The regex pattern to use has to be given via the **pattern** option.
- **output**: An object which is used to configure how to send output. Supported types:
- **stdout**: Send output to stdout. No additional options required.
- **file**: Send output to a file. The file name has to be given via the **fileName** option.
Expand Down
2 changes: 1 addition & 1 deletion src/models/IOConfiguration.ts
@@ -1,5 +1,5 @@
export interface InputConfiguration {
type: 'stdin' | 'file';
type: 'stdin' | 'file' | 'regex';
fileName?: string;
pattern?: string;
}
Expand Down
Expand Up @@ -37,7 +37,7 @@ export class FacebookCodingCompetitionsProblemParser extends Parser {

task.setInput({
pattern: `${filename}_.*input[.]txt`,
type: 'file',
type: 'regex',
});

task.setOutput({
Expand Down
Expand Up @@ -17,7 +17,7 @@
],
"testType": "multiNumber",
"input": {
"type": "file",
"type": "regex",
"pattern": "leapfrog_ch__.*input[.]txt"
},
"output": {
Expand Down

0 comments on commit 4904656

Please sign in to comment.