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

Method hasChanged

src/MagicString.ts:1113–1115  ·  view source on GitHub ↗

* Indicates if the string has been changed.

()

Source from the content-addressed store, hash-verified

1111 * Indicates if the string has been changed.
1112 */
1113 hasChanged(): boolean {
1114 return this.original !== this.toString()
1115 }
1116
1117 /** @internal */
1118 _replaceRegexp(searchValue: RegExp, replacement: string | ReplacementFunction): this {

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.95

Tested by

no test coverage detected