Skip to content
This repository has been archived by the owner on Aug 5, 2024. It is now read-only.

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Dec 19, 2019
1 parent 19606f0 commit 477b5a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion javascript/diff_match_patch_uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,7 @@ diff_match_patch.prototype.decodeURI = function(text) {
// (null) in the place where surrogates were split across diff
// boundaries. if we leave those in we'll be stuck with a
// high-surrogate (null) low-surrogate pattern that will break
// deeper in the library or consumping application. we'll "fix"
// deeper in the library or consuming application. we'll "fix"
// these by dropping the (null) and re-joining the surrogate halves
return decoded.replace(/([\uD800-\uDBFF])\(null\)([\uDC00-\uDFFF])/g, "$1$2");
}
Expand Down
2 changes: 1 addition & 1 deletion objectivec/DiffMatchPatch.m
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ - (NSString *)diff_decodeURIWithText:(NSString *)percentEncoded
// (null) in the place where surrogates were split across diff
// boundaries. if we leave those in we'll be stuck with a
// high-surrogate (null) low-surrogate pattern that will break
// deeper in the library or consumping application. we'll "fix"
// deeper in the library or consuming application. we'll "fix"
// these by dropping the (null) and re-joining the surrogate halves
NSString *result = [NSString stringWithCharacters:decoded length:output];
NSRegularExpression *replacer = [NSRegularExpression
Expand Down

0 comments on commit 477b5a6

Please sign in to comment.