Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

1010 - '*/' expected.

🔍 Regex Patterns

regexFind: /\/\*([^*]|\*(?!\/))*$/
regexReplace: $& */

💡 Suggestion

Add closing comment delimiter '*/' to terminate the block comment

📝 Examples

Example 1: Missing closing comment delimiter

- /* console.log('This is commented out')
+ /* console.log('This is commented out') */

Explanation: Block comments must be properly closed with '*/'

🖼️ Visual Output

Command

npx tsc ./docs/1010/index.ts --noEmit --pretty

Result

docs/1010/index.ts:1:40 - error TS1010: '*/' expected.

1 /* console.log('This is commented out')

OR (without --pretty flag):

docs/1010/index.ts(1,40): error TS1010: '*/' expected.