1
1
mirror of https://github.com/theoludwig/programming-challenges.git synced 2024-11-09 22:08:58 +01:00

style: fix editorconfig linting

This commit is contained in:
Divlo 2021-11-10 20:17:14 +01:00
parent 0e0fd0b86d
commit 4bb9e6b656
No known key found for this signature in database
GPG Key ID: 6F24DA54DA3967CF
2 changed files with 6 additions and 5 deletions

View File

@ -27,7 +27,8 @@ bool character_is_alphanumeric(char character) {
char ascii_Z = 'Z';
char ascii_0 = '0';
char ascii_9 = '9';
return (character >= ascii_a && character <= ascii_z) ||
(character >= ascii_A && character <= ascii_Z) ||
(character >= ascii_0 && character <= ascii_9);
bool is_lowercase_letter = character >= ascii_a && character <= ascii_z;
bool is_uppercase_letter = character >= ascii_A && character <= ascii_Z;
bool is_digit = character >= ascii_0 && character <= ascii_9;
return is_lowercase_letter || is_uppercase_letter || is_digit;
}

View File

@ -4,7 +4,7 @@ import { Challenge } from './Challenge'
import { Solution } from './Solution'
const solutionsRegex = new RegExp(
/challenges\/[\s\S]*\/solutions\/(c|cpp|cs|dart|java|javascript|python|rust|typescript)\/[\s\S]*\/(solution|Solution).(c|cpp|cs|dart|java|js|py|rs|ts)/
/challenges\/[\s\S]*\/solutions\/(c|cpp|cs|dart|java|javascript|python|rust|typescript)\/[\s\S]*\/(.*).(c|cpp|cs|dart|java|js|py|rs|ts)/
)
const dockerRegex = new RegExp(
@ -12,7 +12,7 @@ const dockerRegex = new RegExp(
)
const inputOutputRegex = new RegExp(
/challenges\/[\s\S]*\/test\/[0-9]\/(input.txt|output.txt)/
/challenges\/[\s\S]*\/test\/(.*)\/(input.txt|output.txt)/
)
export interface GitAffectedOptions {