Skip to content

Commit

Permalink
Merge pull request #52 from Pewillia/51-reimplemant-verify-jon
Browse files Browse the repository at this point in the history
add json validation which was commented out
  • Loading branch information
jolevesq authored Oct 31, 2024
2 parents aa90882 + 3bbc16c commit 129d6fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/cgpvContextProvider/cgpvHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ export function useCgpvHook(): ICgpvHook {
const validateConfigJson = (json: string): string | null => {
try {
const str = json.replaceAll(`'`, `"`);
//const configJSON = JSON.parse(str);
JSON.parse(str);
cgpv.api.config.createMapConfig(str, 'en');
} catch (e: any) {
return cgpv.api.utilities.core.escapeRegExp(e.message);
Expand Down

0 comments on commit 129d6fe

Please sign in to comment.