Skip to content

Commit

Permalink
fix(string): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Mar 20, 2017
1 parent afa4d78 commit 8112b2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions prh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ rules:
patterns: 文式
- expected: 宣言的
patterns: 宣言亭
- expected: コンストラクタ
patterns: 今ストラク
# 文体
- expected: どのように
patterns:
Expand Down
2 changes: 1 addition & 1 deletion source/basic/data-type/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ var numberRegExp = /\d+/; // 1文字以上の数字にマッチする正規表
numberRegExp.test(123); // => true
```

`RegExp`今ストラクを使うことで文字列から正規表現オブジェクトを作成することもできますが
`RegExp`コンストラクタを使うことで文字列から正規表現オブジェクトを作成することもできますが
特殊文字の二重エスケープが必要になり直感的に書くことが難しくなります。

正規表現オブジェクトについて詳しくは、第n章で紹介します。
Expand Down

0 comments on commit 8112b2d

Please sign in to comment.