From 4289bf1fbb823f410775b4c7d0533b7abd8e5f5f Mon Sep 17 00:00:00 2001 From: 3indblown Leaf <69508345+kraccoon-dev@users.noreply.github.com> Date: Tue, 1 Feb 2022 19:42:11 +0900 Subject: remove class 1 (#3922) --- .../javascript/reference/global_objects/regexp/test/index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'files/ko/web/javascript/reference/global_objects/regexp/test') diff --git a/files/ko/web/javascript/reference/global_objects/regexp/test/index.html b/files/ko/web/javascript/reference/global_objects/regexp/test/index.html index 07569e7eaf..8a4b200e5f 100644 --- a/files/ko/web/javascript/reference/global_objects/regexp/test/index.html +++ b/files/ko/web/javascript/reference/global_objects/regexp/test/index.html @@ -21,7 +21,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/test

구문

-
regexObj.test(str)
+
regexObj.test(str)

매개변수

@@ -48,7 +48,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/RegExp/test

문자열의 맨 처음에 "hello"가 포함됐는지 알아보는 간단한 예제 코드입니다.

-
const str = 'hello world!';
+
const str = 'hello world!';
 const result = /^hello/.test(str);
 
 console.log(result); // true
@@ -56,7 +56,7 @@ console.log(result); // true
 
 

다음은 일치 여부에 따라 다른 메시지를 기록하는 예제입니다.

-
function testInput(re, str) {
+
function testInput(re, str) {
   let midstring;
   if (re.test(str)) {
     midstring = 'contains';
@@ -81,7 +81,7 @@ console.log(result); // true
 
 

이 행동에 대한 예제가 다음 코드입니다.

-
const regex = /foo/g; // the "global" flag is set
+
const regex = /foo/g; // the "global" flag is set
 
 // regex.lastIndex is at 0
 regex.test('foo')     // true
-- 
cgit v1.2.3-54-g00ecf