The /.../gs regex expression uses the "s" flag which is only supported when targeting 'es2018' or later.
|
const regex = /<sample Python.*?>(.*?)<\/sample>/gs; |
Also lines 320, 322.
The project currently targets ES6.
|
"lib": ["ES6"], |
|
"target": "ES6", |
Perhaps along with #313 - I suggest updating the lib and target ES2020.
"dotAll 's' flag : Allows . to match newline characters." :
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags
Maybe a double check is necessary to ensure the "/gs" flags that exist really should have the "s".
The
/.../gsregex expression uses the "s" flag which is only supported when targeting 'es2018' or later.Docs/files/jsdoc-parser.js
Line 242 in 7c5e028
Also lines 320, 322.
The project currently targets ES6.
Docs/files/jsconfig.json
Lines 10 to 11 in 7c5e028
Perhaps along with #313 - I suggest updating the lib and target ES2020.
"dotAll 's' flag : Allows . to match newline characters." :
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions#advanced_searching_with_flags
Maybe a double check is necessary to ensure the "/gs" flags that exist really should have the "s".