Skip to content

Commit

Permalink
[CI] Use Perl Core module JSON::PP
Browse files Browse the repository at this point in the history
  • Loading branch information
chalin committed Aug 16, 2023
1 parent 4adf80c commit 9529d28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/normalize-cspell-front-matter.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use strict;
use warnings;
use JSON;
use JSON::PP;
use FileHandle;

my @words;
Expand Down Expand Up @@ -48,7 +48,7 @@ sub getSiteWideDictWords {
# Remove JSON comments
$json_text =~ s/^\s*\/\/.*$//mg;

my $json = JSON->new;
my $json = JSON::PP->new;
my $data = $json->decode($json_text);
my %dictionary = map { $_ => 1 } @{ $data->{words} };

Expand Down

0 comments on commit 9529d28

Please sign in to comment.