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

Method hasChanged

src/MagicString.ts:1112–1114  ·  view source on GitHub ↗

* Indicates if the string has been changed.

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.95

Tested by

no test coverage detected