psychopy.org | Reference | Downloads | Github

.endswith conversion to JS .endsWith

Dear PsychoPy/Pavlovia Team,

it would be great if you adjusted the autocorrect of the Python .endswith to the JS .endsWith with a capital “W” as I otherwise have to manually keep editing it whenever I add a piece of code.

Best

In the meantime, since I no longer have to manually change .append to .push because of Array.prototype.append = [].push; in my code_JS component, could you do something similar? Would Array.prototype.endswith = [].endsWith; work?