LeaVerou / brep

Write batch find & replace scripts that transform files with a simple human-readable syntax
12 stars 0 forks source link

Start support for JS replacements #19

Closed LeaVerou closed 2 weeks ago

LeaVerou commented 2 weeks ago

Not working yet

DmitrySharabin commented 2 weeks ago

Not working yet

What exactly is not working? I wrote a couple of tests (and they passed):

image

I ran the script you wrote in the issue (without data since it's not supported yet), and it did its job:

image

I have only one question, though (see the comment). What am I missing?

LeaVerou commented 2 weeks ago

(without data since it's not supported yet)

data should work, due to the Object.assign(this, script);

DmitrySharabin commented 2 weeks ago

(without data since it's not supported yet)

data should work, due to the Object.assign(this, script);

Hm, let me check it once again