8
0
Эх сурвалжийг харах

Add referrence in code to issue number.

Mateusz Samsel 6 жил өмнө
parent
commit
bf97a24f71

+ 2 - 1
packages/ckeditor5-utils/src/featuredetection/regexp.js

@@ -27,7 +27,8 @@ export default {
 		// See https://github.com/ckeditor/ckeditor5-mention/issues/44#issuecomment-487002174.
 
 		try {
-			isSupported = 'ć'.search( new RegExp( '[\\p{L}]', 'u' ) ) === 0; // Usage of regular expression literal cause error during build
+			// Usage of regular expression literal cause error during build (ckeditor/ckeditor5-dev#534).
+			isSupported = 'ć'.search( new RegExp( '[\\p{L}]', 'u' ) ) === 0;
 		} catch ( error ) {
 			// Firefox throws a SyntaxError when the group is unsupported.
 		}

+ 1 - 1
packages/ckeditor5-utils/tests/featuredetection/regexp.js

@@ -8,7 +8,7 @@ import regExpFeatureDetection from '../../src/featuredetection/regexp';
 describe( 'featuredetection', () => {
 	describe( 'isUnicodePropertySupported', () => {
 		it( 'should detect accessibility of unicode properties', () => {
-			// Usage of regular expression literal cause error during build
+			// Usage of regular expression literal cause error during build (ckeditor/ckeditor5-dev#534)
 			const testFn = () => ( new RegExp( '\\p{L}', 'u' ) ).test( 'ć' );
 
 			if ( regExpFeatureDetection.isUnicodePropertySupported ) {