Skip to content

Commit

Permalink
Use non-capturing group inside RegExp (#1767)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Mar 3, 2019
1 parent 92cfd86 commit 9dc9a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/astFromValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ export function astFromValue(value: mixed, type: GraphQLInputType): ?ValueNode {
* - NegativeSign? 0
* - NegativeSign? NonZeroDigit ( Digit+ )?
*/
const integerStringRegExp = /^-?(0|[1-9][0-9]*)$/;
const integerStringRegExp = /^-?(?:0|[1-9][0-9]*)$/;

0 comments on commit 9dc9a56

Please sign in to comment.