Skip to content

Commit

Permalink
add synopsis
Browse files Browse the repository at this point in the history
  • Loading branch information
plicease committed Feb 10, 2024
1 parent 6c8aeac commit 1da537a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/Perl/Critic/Policy/Plicease/ProhibitUnicodeDigitInRegexp.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ use base qw( Perl::Critic::Policy );
# ABSTRACT: Prohibit non-ASCII \d in regular expressions
# VERSION

=head1 SYNOPSIS
perlcriticrc:
[Plicease::ProhibitUnicodeDigitInRegexp]
code:
/\d/; # not ok
/[0-9]/; # ok
=head1 DESCRIPTION
The character class C<\d> in a regular expression matches all unicode digit character, which
Expand Down

0 comments on commit 1da537a

Please sign in to comment.