Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Feb 15, 2024
1 parent d7f72be commit 5313b31
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@ export function usePasteHandler( props ) {

function pasteInline( content ) {
const transformed = formatTypes.reduce(
( accumlator, { __unstablePasteRule } ) => {
( accumulator, { __unstablePasteRule } ) => {
// Only allow one transform.
if ( __unstablePasteRule && accumlator === value ) {
accumlator = __unstablePasteRule( value, {
if ( __unstablePasteRule && accumulator === value ) {
accumulator = __unstablePasteRule( value, {
html,
plainText,
} );
}

return accumlator;
return accumulator;
},
value
);
Expand Down

0 comments on commit 5313b31

Please sign in to comment.