mirror of
https://github.com/alrayyes/wiki.git
synced 2025-07-14 13:41:47 +00:00
Quartz sync: May 6, 2024, 10:40 PM
This commit is contained in:
parent
aee9145691
commit
4ef8371441
635 changed files with 22281 additions and 6 deletions
10
content/20201110095139-javascript_regexp_u_flag.md
Normal file
10
content/20201110095139-javascript_regexp_u_flag.md
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
id: 76fc0a0a-7d56-49c7-8c57-7686cca110fc
|
||||
title: JavaScript RegExp /u flag
|
||||
---
|
||||
|
||||
This flag matches astral characters such as emojis:
|
||||
|
||||
``` javascript
|
||||
console.log(/^.$/u.test("🙂")); // true
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue