-
-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
文字列: ` new RegExp(String.raw
...)
`についてを追加する
#1689
Labels
Status: Proposal
提案段階の状態
Comments
azu
changed the title
文字列: `
文字列: `Aug 7, 2023
new RegExp(String.raw
...)
` についてを追加する new RegExp(String.raw
...)
` についてを追加する
azu
changed the title
文字列: `
文字列: ``Aug 7, 2023
new RegExp(String.raw
...)
` についてを追加する new RegExp(String.raw
...)
``についてを追加する
azu
changed the title
文字列: ``
文字列: new RegExp(String.raw\Aug 7, 2023
new RegExp(String.raw
...)
``についてを追加する...\
) についてを追加する
azu
changed the title
文字列: new RegExp(String.raw\
文字列: `Aug 7, 2023
...\
) についてを追加する new RegExp(String.raw
...)
`についてを追加する
変数と正規表現を組み合わせるときにregxというのがこれをやっていたけど、String.rawを使うことで素直に書ける |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
URL : https://github.com/asciidwango/js-primer/blob/master/source/basic/string/README.md
を使うことで、new RegExpの難しいエスケープを考えるケースが減るというのはちょっとあった方が良いと思った。
Templateなので改行を含めてしまうとダメだけど、String.rawのユースケースとして良い気がする
regex with comments
The text was updated successfully, but these errors were encountered: