btw, String.raw lets you avoid the double escapes:
developer.mozilla.org/en-US/docs/W...
Though if you are using this as a JS regexp object, you can just create it using /regex literal/ syntax:
developer.mozilla.org/en-US/docs/W...
@kainino0x.bsky.social
WebGPU specification co-editor @w3c, software engineer Google Chrome. Member/organizer #AlphabetWorkersUnion #AWU. he|they I am not currently on here, please find me on Mastodon! https://linktr.ee/kainino
btw, String.raw lets you avoid the double escapes:
developer.mozilla.org/en-US/docs/W...
Though if you are using this as a JS regexp object, you can just create it using /regex literal/ syntax:
developer.mozilla.org/en-US/docs/W...