Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/source_map/mod.js>SourceNode#replaceRight

Port of mozilla / source-map to deno.
Latest
method SourceNode.prototype.replaceRight
import { SourceNode } from "https://deno.land/x/source_map@0.8.0-beta.1/mod.js";

Call String.prototype.replace on the very right-most source snippet. Useful for trimming whitespace from the end of a source node, etc.

Parameters

aPattern

The pattern to replace.

aReplacement

The thing to replace the pattern with.