MCPcopy Create free account
hub / github.com/Rich-Harris/magic-string / hasChanged

Method hasChanged

src/MagicString.ts:1155–1157  ·  view source on GitHub ↗

* Indicates if the string has been changed.

()

Source from the content-addressed store, hash-verified

1153 * Indicates if the string has been changed.
1154 */
1155 hasChanged(): boolean {
1156 return this.original !== this.toString()
1157 }
1158
1159 /** @internal */
1160 _replaceRegexp(searchValue: RegExp, replacement: string | ReplacementFunction): this {

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.95

Tested by

no test coverage detected