Baseline Widely available
ignoreCase
ì ê·¼ì ìì±ì i
íëê·¸ê° ì ê· ííìì ì¬ì©ëìëì§ ì¬ë¶ë¥¼ ê°ë¦¬íµëë¤.
const regex1 = new RegExp("foo");
const regex2 = new RegExp("foo", "i");
console.log(regex1.test("Football"));
// Expected output: false
console.log(regex2.ignoreCase);
// Expected output: true
console.log(regex2.test("Football"));
// Expected output: true
ì¤ëª
RegExp.prototype.ignoreCase
ë i
íëê·¸ê° ì¬ì©ëìì¼ë¨¼ true
ê°ì ê°ì§ëë¤. ê·¸ë ì§ ìì¼ë©´ false
ê°ì ê°ì§ëë¤. i
íëê·¸ë 문ìì´ ë§¤ì¹ìì ëì문ì를 구ë¶íì§ ììì ê°ë¦¬íµëë¤.
ì ê·ìì unicode
íëê·¸ê° ìë ê²½ì° ë/ì문ì ì¼ì´ì¤ 매íì CaseFolding.txt
ì ëª
ìë ëë¡ ìíë©ëë¤. ê·¸ë ì§ ìì¼ë©´ ë/ì문ì 매íì Unicode Default Case Conversionì ì¬ì©í©ëë¤. ì´ ìê³ ë¦¬ì¦ì String.prototype.toUpperCase()
ë° String.prototype.toLowerCase()
ìì ì¬ì©ëë ìê³ ë¦¬ì¦ê³¼ ëì¼í©ëë¤.
ignoreCase
ì set ì ê·¼ìë undefined
, ì¦ ì ìëì§ ìììµëë¤. ì´ ìì±ì ì§ì ë³ê²½í ì ììµëë¤.
const regex = /foo/i;
console.log(regex.ignoreCase); // true
ëª
ì¸ì ë¸ë¼ì°ì í¸íì± ê°ì´ 보기
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4