Skip to content

Commit 23c21af

Browse files
authored
Merge pull request #2 from CPPAlliance/regex_size
change regex for CWG|LWG
2 parents 8b0fc5e + e5c3b9d commit 23c21af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ const search = ({ query, type }) => {
126126
};
127127

128128
const matchPaper = (text) => {
129-
const result = text.match(/(N\d{4}|[PD]\d{4}(R\d)?|(CWG|EWG|LWG|LEWG|FS)\d{1,3})/i);
129+
const result = text.match(/(N\d{4}|[PD]\d{4}(R\d)?|(CWG|EWG|LWG|LEWG|FS)\d{1,4})/i);
130130
return result === null ? undefined : result[0];
131131
};
132132

133133
const matchPaperInSquareBrackets = (text) => {
134-
const result = text.match(/\[(N\d{4}|[PD]\d{4}(R\d)?|(CWG|EWG|LWG|LEWG|FS)\d{1,3})\]/i);
134+
const result = text.match(/\[(N\d{4}|[PD]\d{4}(R\d)?|(CWG|EWG|LWG|LEWG|FS)\d{1,4})\]/i);
135135
return result === null ? undefined : result[0];
136136
};
137137

0 commit comments

Comments
 (0)