Skip to content

Commit

Permalink
back out last change, keep _ as last character
Browse files Browse the repository at this point in the history
  • Loading branch information
KilledByAPixel authored Feb 15, 2022
1 parent 44c69aa commit e317d05
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions JSONCrush.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Typescript type definition for JSONCrush
declare const JSONCrush: {
crush(input: string, maxSubstringLength?: number): string,
uncrush(input: string): string
};
// Typescript type definition for JSONCrush
declare const JSONCrush: {
crush(input: string, maxSubstringLength?: number): string,
uncrush(input: string): string
};
export default JSONCrush;
3 changes: 1 addition & 2 deletions JSONCrush.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,7 @@ crush: (string, maxSubstringLength=50)=>
crushedString += delimiter + crushed.b;

// fix issues with some links not being recognized properly
// insert an extra character at the end to make it safe
crushedString += 'J';
crushedString += '_';

// return crushed string
return crushedString;
Expand Down
2 changes: 1 addition & 1 deletion JSONCrush.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e317d05

Please sign in to comment.