ソースを参照

Add referrence in code to issue number.

Mateusz Samsel 6 年 前
コミット
e0f622411e
1 ファイル変更2 行追加1 行削除
  1. 2 1
      packages/ckeditor5-word-count/src/wordcount.js

+ 2 - 1
packages/ckeditor5-word-count/src/wordcount.js

@@ -239,7 +239,8 @@ export default class WordCount extends Plugin {
 		// {Pd} - Any kind of hyphen or dash.
 		// {Pc} - A punctuation character such as an underscore that connects words.
 		const wordsMatchRegExp = regExpFeatureDetection.isUnicodePropertySupported ?
-			new RegExp( '[\\p{L}\\p{N}\\p{M}\\p{Pd}\\p{Pc}]+', 'gu' ) : // Usage of regular expression literal cause error during build
+			// Usage of regular expression literal cause error during build (ckeditor/ckeditor5-dev#534).
+			new RegExp( '[\\p{L}\\p{N}\\p{M}\\p{Pd}\\p{Pc}]+', 'gu' ) :
 			/[_\-a-zA-Z0-9À-ž]+/gu;
 
 		const detectedWords = txt.match( wordsMatchRegExp ) || [];