You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What do you think about adding a JsDiff.serializeStructuredPatch(structuredPatchObject) method,
which is basically the reverse of JsDiff.parsePatch(diffStr).
I'd even provide a pull request =P
The text was updated successfully, but these errors were encountered:
Hmm. It looks to me like the formatPatch method we already export from patch/create.js essentially is the serializePatch method contemplated here, and all I need to do is
add tests showing it's the inverse of parsePatch
expose it on the top-level Diff object exported by the library, and
document it
I would also prefer serializePatch as a name over formatPatch but I suppose it doesn't matter much so I'll just keep the old name for consistency.
What do you think about adding a
JsDiff.serializeStructuredPatch(structuredPatchObject)
method,which is basically the reverse of
JsDiff.parsePatch(diffStr)
.I'd even provide a pull request =P
The text was updated successfully, but these errors were encountered: