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

Commit 477b5a6

Browse files
committed
Fix typo
1 parent 19606f0 commit 477b5a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

javascript/diff_match_patch_uncompressed.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,7 @@ diff_match_patch.prototype.decodeURI = function(text) {
15161516
// (null) in the place where surrogates were split across diff
15171517
// boundaries. if we leave those in we'll be stuck with a
15181518
// high-surrogate (null) low-surrogate pattern that will break
1519-
// deeper in the library or consumping application. we'll "fix"
1519+
// deeper in the library or consuming application. we'll "fix"
15201520
// these by dropping the (null) and re-joining the surrogate halves
15211521
return decoded.replace(/([\uD800-\uDBFF])\(null\)([\uDC00-\uDFFF])/g, "$1$2");
15221522
}

objectivec/DiffMatchPatch.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1497,7 +1497,7 @@ - (NSString *)diff_decodeURIWithText:(NSString *)percentEncoded
14971497
// (null) in the place where surrogates were split across diff
14981498
// boundaries. if we leave those in we'll be stuck with a
14991499
// high-surrogate (null) low-surrogate pattern that will break
1500-
// deeper in the library or consumping application. we'll "fix"
1500+
// deeper in the library or consuming application. we'll "fix"
15011501
// these by dropping the (null) and re-joining the surrogate halves
15021502
NSString *result = [NSString stringWithCharacters:decoded length:output];
15031503
NSRegularExpression *replacer = [NSRegularExpression

0 commit comments

Comments
 (0)