diff options
| author | James Smith <baggy@baggy.me.uk> | 2021-10-19 19:58:32 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-19 19:58:32 +0100 |
| commit | d61c0fba73a6b0c05f042c0d8f294fba221cc8e5 (patch) | |
| tree | 727c98b019284bfea2a3308222cbdd192a25b943 | |
| parent | 7a410af7fbfab9fb4436a9d310f052285cc229b4 (diff) | |
| download | perlweeklychallenge-club-d61c0fba73a6b0c05f042c0d8f294fba221cc8e5.tar.gz perlweeklychallenge-club-d61c0fba73a6b0c05f042c0d8f294fba221cc8e5.tar.bz2 perlweeklychallenge-club-d61c0fba73a6b0c05f042c0d8f294fba221cc8e5.zip | |
Update README.md
| -rw-r--r-- | challenge-135/james-smith/README.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-135/james-smith/README.md b/challenge-135/james-smith/README.md index 262d090ea3..abbce3740c 100644 --- a/challenge-135/james-smith/README.md +++ b/challenge-135/james-smith/README.md @@ -89,7 +89,7 @@ Again we can compact the code - by removing spaces and a couple of rewrites: ```perl sub is_sedol_compact { - return 0if$_[0]!~/^[0-9B-HJ-NP-TW-Z]{6}\d$/; + return 0if$_[0]!~/^[\dB-HJ-NP-TW-Z]{6}\d$/; my($t,@w)=qw(0 1 9 3 7 1 3 1); $t+=(/\d/?$_:-55+ord$_)*pop@w for split//,$_[0]; $t%10?0:1 |
